refactor: migrate core modules to Kotlin Multiplatform and consolidat… (#4735)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-03-06 16:06:50 -06:00 committed by GitHub
parent f3775a601c
commit cffbd08806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
265 changed files with 1383 additions and 1340 deletions

View file

@ -253,8 +253,9 @@ fun MessageScreen(
if (hasUnreadMessages == true) {
if (firstUnreadMessageUuid == null) return@LaunchedEffect // Wait for UUID query
if (firstUnreadIndex != null) {
val targetIndex = (firstUnreadIndex!! - (UnreadUiDefaults.VISIBLE_CONTEXT_COUNT - 1)).coerceAtLeast(0)
val index = firstUnreadIndex
if (index != null) {
val targetIndex = (index - (UnreadUiDefaults.VISIBLE_CONTEXT_COUNT - 1)).coerceAtLeast(0)
listState.smartScrollToIndex(coroutineScope = coroutineScope, targetIndex = targetIndex)
hasPerformedInitialScroll = true
} else {