diff --git a/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt b/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt index a76ed4415e..7ec377bc1b 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt @@ -109,9 +109,9 @@ class ChatViewModel @Inject constructor( val getVoiceRecordingLocked: LiveData get() = _getVoiceRecordingLocked - private val _voiceMessagePlaybackSpeeds: MutableLiveData> = MutableLiveData() + private val _voiceMessagePlaybackSpeedPreferences: MutableLiveData> = MutableLiveData() val voiceMessagePlaybackSpeedPreferences: LiveData> - get() = _voiceMessagePlaybackSpeeds + get() = _voiceMessagePlaybackSpeedPreferences val getMessageFlow = chatRepository.messageFlow .onEach { @@ -651,11 +651,11 @@ class ChatViewModel @Inject constructor( } fun applyPlaybackSpeedPreferences(speeds: Map) { - _voiceMessagePlaybackSpeeds.postValue(speeds) + _voiceMessagePlaybackSpeedPreferences.postValue(speeds) } fun getPlaybackSpeedPreference(message: ChatMessage) = - _voiceMessagePlaybackSpeeds.value?.get(message.user.id) ?: PlaybackSpeed.NORMAL + _voiceMessagePlaybackSpeedPreferences.value?.get(message.user.id) ?: PlaybackSpeed.NORMAL // inner class GetRoomObserver : Observer { // override fun onSubscribe(d: Disposable) {