|
|
@ -1,4 +1,5 @@
|
|
|
|
import SignalCoreKit
|
|
|
|
import SignalCoreKit
|
|
|
|
|
|
|
|
import SessionSnodeKit
|
|
|
|
|
|
|
|
|
|
|
|
extension MessageReceiver {
|
|
|
|
extension MessageReceiver {
|
|
|
|
|
|
|
|
|
|
|
@ -230,6 +231,9 @@ extension MessageReceiver {
|
|
|
|
if let incomingMessage = messageToDelete as? TSIncomingMessage, let notificationIdentifier = incomingMessage.notificationIdentifier, !notificationIdentifier.isEmpty {
|
|
|
|
if let incomingMessage = messageToDelete as? TSIncomingMessage, let notificationIdentifier = incomingMessage.notificationIdentifier, !notificationIdentifier.isEmpty {
|
|
|
|
SSKEnvironment.shared.notificationsManager!.cancelNotification(notificationIdentifier)
|
|
|
|
SSKEnvironment.shared.notificationsManager!.cancelNotification(notificationIdentifier)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if let serverHash = messageToDelete.serverHash {
|
|
|
|
|
|
|
|
SnodeAPI.deleteMessage(publicKey: author, serverHashes: [serverHash]).retainUntilComplete()
|
|
|
|
|
|
|
|
}
|
|
|
|
messageToDelete.remove(with: transaction)
|
|
|
|
messageToDelete.remove(with: transaction)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|