Merge pull request #575 from Aga-C/fix-notification-on-resume

Fixed notification not disappearing on resume (#573)
This commit is contained in:
Tibor Kaputa 2023-02-01 08:29:41 +01:00 committed by GitHub
commit f1c5b512a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,8 @@ class ThreadActivity : SimpleActivity() {
}
isActivityVisible = true
notificationManager.cancel(threadId.hashCode())
ensureBackgroundThread {
val newConv = conversationsDB.getConversationWithThreadId(threadId)
if (newConv != null) {