mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-27 20:15:21 +00:00
Mark all messages as read upon opening a conversation
This commit is contained in:
parent
2a06904d76
commit
a7e5ff1ce2
@ -126,6 +126,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
setUpBlockedBanner()
|
||||
setUpLinkPreviewObserver()
|
||||
scrollToFirstUnreadMessage()
|
||||
markAllAsRead()
|
||||
}
|
||||
|
||||
private fun setUpRecyclerView() {
|
||||
@ -257,6 +258,10 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
||||
// endregion
|
||||
|
||||
// region Updating & Animation
|
||||
private fun markAllAsRead() {
|
||||
DatabaseFactory.getThreadDatabase(this).setRead(threadID, true)
|
||||
}
|
||||
|
||||
override fun inputBarHeightChanged(newValue: Int) {
|
||||
@Suppress("NAME_SHADOWING") val newValue = max(newValue, resources.getDimension(R.dimen.input_bar_height).roundToInt())
|
||||
// 36 DP is the exact height of the typing indicator view. It's also exactly 18 * 2, and 18 is the large message
|
||||
|
Loading…
Reference in New Issue
Block a user