Only mark recent changes as read when dismissing snackbar via swipe

This commit is contained in:
cketti 2023-01-09 18:49:34 +01:00
parent 612f0b9477
commit 7cb741a7ff

View file

@ -372,7 +372,9 @@ class MessageListFragment :
.setAction(R.string.okay_action) { launchRecentChangesActivity() }
.addCallback(object : BaseCallback<Snackbar>() {
override fun onDismissed(transientBottomBar: Snackbar?, event: Int) {
recentChangesViewModel.onRecentChangesHintDismissed()
if (event == DISMISS_EVENT_SWIPE) {
recentChangesViewModel.onRecentChangesHintDismissed()
}
}
})