mirror of
https://github.com/SimpleMobileTools/Simple-SMS-Messenger.git
synced 2025-01-31 17:44:46 +01:00
fix #48, no not show incoming message notifications at currently open thread
This commit is contained in:
parent
db3b0b794a
commit
9641eed138
@ -597,6 +597,7 @@ class ThreadActivity : SimpleActivity() {
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.ASYNC)
|
||||
fun refreshMessages(event: Events.RefreshMessages) {
|
||||
notificationManager.cancel(threadId)
|
||||
messages = getMessages(threadId)
|
||||
setupAdapter()
|
||||
}
|
||||
|
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user