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
1 changed files with 3 additions and 1 deletions

View File

@ -1138,7 +1138,9 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
private fun deleteLocally(message: MessageRecord) {
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)
}