diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index e90dc830a3..7abe4a704d 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -1157,11 +1157,12 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe } else { messageDataProvider.getServerHashForMessage(message.id)?.let { serverHash -> SnodeAPI.deleteMessage(thread.address.serialize(), listOf(serverHash)) - .failUi { error -> + .success { + messageDataProvider.deleteMessage(message.id, !message.isMms) + }.failUi { error -> Toast.makeText(this@ConversationActivityV2, "Couldn't delete message due to error: $error", Toast.LENGTH_LONG).show() } } - messageDataProvider.deleteMessage(message.id, !message.isMms) } }