mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Set LaunchedEffect key on identifier list.
This commit is contained in:
+1
-1
@@ -312,7 +312,7 @@ class TimelinePresenter(
|
|||||||
LaunchedEffect(roomInfo.fullyReadEventId) {
|
LaunchedEffect(roomInfo.fullyReadEventId) {
|
||||||
suppressJumpToUnread.value = false
|
suppressJumpToUnread.value = false
|
||||||
}
|
}
|
||||||
LaunchedEffect(timelineItems, displayJumpToUnread, roomInfo.fullyReadEventId, suppressJumpToUnread.value) {
|
LaunchedEffect(timelineItems.map { it.identifier() }, displayJumpToUnread, roomInfo.fullyReadEventId, suppressJumpToUnread.value) {
|
||||||
if (!displayJumpToUnread || suppressJumpToUnread.value) {
|
if (!displayJumpToUnread || suppressJumpToUnread.value) {
|
||||||
jumpToUnread.value = JumpToUnreadState.Hidden
|
jumpToUnread.value = JumpToUnreadState.Hidden
|
||||||
return@LaunchedEffect
|
return@LaunchedEffect
|
||||||
|
|||||||
Reference in New Issue
Block a user