mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-26 08:07: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()
|
setUpBlockedBanner()
|
||||||
setUpLinkPreviewObserver()
|
setUpLinkPreviewObserver()
|
||||||
scrollToFirstUnreadMessage()
|
scrollToFirstUnreadMessage()
|
||||||
|
markAllAsRead()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun setUpRecyclerView() {
|
private fun setUpRecyclerView() {
|
||||||
@ -257,6 +258,10 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe
|
|||||||
// endregion
|
// endregion
|
||||||
|
|
||||||
// region Updating & Animation
|
// region Updating & Animation
|
||||||
|
private fun markAllAsRead() {
|
||||||
|
DatabaseFactory.getThreadDatabase(this).setRead(threadID, true)
|
||||||
|
}
|
||||||
|
|
||||||
override fun inputBarHeightChanged(newValue: Int) {
|
override fun inputBarHeightChanged(newValue: Int) {
|
||||||
@Suppress("NAME_SHADOWING") val newValue = max(newValue, resources.getDimension(R.dimen.input_bar_height).roundToInt())
|
@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
|
// 36 DP is the exact height of the typing indicator view. It's also exactly 18 * 2, and 18 is the large message
|
||||||
|
Loading…
x
Reference in New Issue
Block a user