mirror of
https://github.com/oxen-io/session-android.git
synced 2025-04-01 08:52:14 +00:00
cancel notification for unsend request
This commit is contained in:
parent
ee3e9ae17f
commit
f10ddb8e3a
@ -157,7 +157,8 @@ fun MessageReceiver.handleUnsendRequest(message: UnsendRequest) {
|
||||
val author = message.author ?: return
|
||||
val messageIdToDelete = storage.getMessageIdInDatabase(timestamp, author) ?: return
|
||||
if (!messageDataProvider.isOutgoingMessage(messageIdToDelete)) {
|
||||
// TODO: Cancel the notification of this message
|
||||
// FIXME: Not sure if there is any performance issue here
|
||||
SSKEnvironment.shared.notificationManager.updateNotification(context)
|
||||
}
|
||||
messageDataProvider.getServerHashForMessage(messageIdToDelete)?.let { serverHash ->
|
||||
SnodeAPI.deleteMessage(author, listOf(serverHash))
|
||||
|
Loading…
x
Reference in New Issue
Block a user