fix #48, no not show incoming message notifications at currently open thread

This commit is contained in:
tibbi 2020-06-17 20:25:58 +02:00
parent db3b0b794a
commit 9641eed138
2 changed files with 2 additions and 1 deletions

View File

@ -597,6 +597,7 @@ class ThreadActivity : SimpleActivity() {
@Subscribe(threadMode = ThreadMode.ASYNC)
fun refreshMessages(event: Events.RefreshMessages) {
notificationManager.cancel(threadId)
messages = getMessages(threadId)
setupAdapter()
}

View File

@ -570,5 +570,5 @@ fun Context.showReceivedMessageNotification(address: String, body: String, threa
.addAction(R.drawable.ic_check_vector, getString(R.string.mark_as_read), markAsReadPendingIntent)
.setChannelId(channelId)
notificationManager.notify(messageId, builder.build())
notificationManager.notify(threadID, builder.build())
}