Fix notification update for incoming unsend request

This commit is contained in:
andrew 2023-10-11 01:57:33 +10:30
parent 84bc1dcb6b
commit 4313eee33b
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ fun MessageReceiver.handleUnsendRequest(message: UnsendRequest): Long? {
SnodeAPI.deleteMessage(author, listOf(serverHash))
}
val deletedMessageId = messageDataProvider.updateMessageAsDeleted(timestamp, author)
if (!messageDataProvider.isOutgoingMessage(messageIdToDelete)) {
if (!messageDataProvider.isOutgoingMessage(timestamp)) {
SSKEnvironment.shared.notificationManager.updateNotification(context)
}