send unsend request to self only for delete locally

This commit is contained in:
ryanzhao 2021-08-17 12:17:40 +10:00
parent b9dd229207
commit c4a3463416

View File

@ -1138,7 +1138,9 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
private fun deleteLocally(message: MessageRecord) { private fun deleteLocally(message: MessageRecord) {
buildUsendRequest(message)?.let { unsendRequest -> buildUsendRequest(message)?.let { unsendRequest ->
MessageSender.send(unsendRequest, thread.address) TextSecurePreferences.getLocalNumber(this)?.let {
MessageSender.send(unsendRequest, Address.fromSerialized(it))
}
} }
MessagingModuleConfiguration.shared.messageDataProvider.deleteMessage(message.id, !message.isMms) MessagingModuleConfiguration.shared.messageDataProvider.deleteMessage(message.id, !message.isMms)
} }