Skip to content
Snippets Groups Projects
Commit dd6f5a51 authored by Jonas Broeckmann's avatar Jonas Broeckmann
Browse files

Fixed crash related to user selection

parent c9474f0f
No related branches found
No related tags found
1 merge request!3Official api
......@@ -323,7 +323,7 @@ private fun UserGridWithSelectionBar(
)
val onSelectIndex: (Int) -> Unit = block@{ index ->
val (userIndex, charIndex) = (userIndexAndCharIndexByChar[chars[index]] ?: return@block)
val (userIndex, charIndex) = (userIndexAndCharIndexByChar[chars[index.coerceIn(chars.indices)]] ?: return@block)
val sectionIndex = userIndex + charIndex
coroutineScope.launch {
gridState.scrollToItem(sectionIndex)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment