delete the message on storage server after receiving an unsend request
This commit is contained in:
parent
9953451767
commit
00fd764042
|
@ -1,4 +1,5 @@
|
|||
import SignalCoreKit
|
||||
import SessionSnodeKit
|
||||
|
||||
extension MessageReceiver {
|
||||
|
||||
|
@ -230,6 +231,9 @@ extension MessageReceiver {
|
|||
if let incomingMessage = messageToDelete as? TSIncomingMessage, let notificationIdentifier = incomingMessage.notificationIdentifier, !notificationIdentifier.isEmpty {
|
||||
SSKEnvironment.shared.notificationsManager!.cancelNotification(notificationIdentifier)
|
||||
}
|
||||
if let serverHash = messageToDelete.serverHash {
|
||||
SnodeAPI.deleteMessage(publicKey: author, serverHashes: [serverHash]).retainUntilComplete()
|
||||
}
|
||||
messageToDelete.remove(with: transaction)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue