mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
send unsend request to self only for delete locally
This commit is contained in:
parent
b9dd229207
commit
c4a3463416
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user