Fix delete message for everyone doesn't stop the audio playing

This commit is contained in:
fanchao 2024-05-27 13:25:56 +10:00
parent 10597f1f30
commit 0d3a33e6c6

View File

@ -171,6 +171,7 @@ class ConversationViewModel(
fun deleteForEveryone(message: MessageRecord) = viewModelScope.launch {
val recipient = recipient ?: return@launch Log.w("Loki", "Recipient was null for delete for everyone - aborting delete operation.")
stopPlayingAudioMessage(message)
repository.deleteForEveryone(threadId, recipient, message)
.onSuccess {