mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 04:07:26 +00:00
Fixed off-by-one crash when navigating to message from FTS.
Related to #8145
This commit is contained in:
@@ -465,7 +465,7 @@ public class ConversationFragment extends Fragment
|
||||
|
||||
int limit = args.getInt(KEY_LIMIT, PARTIAL_CONVERSATION_LIMIT);
|
||||
int offset = 0;
|
||||
if (limit != 0 && startingPosition > limit) {
|
||||
if (limit != 0 && startingPosition >= limit) {
|
||||
offset = Math.max(startingPosition - (limit / 2) + 1, 0);
|
||||
startingPosition -= offset - 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user