mirror of
https://github.com/oxen-io/session-android.git
synced 2025-02-17 12:18:25 +00:00
Fix for out of bounds on last seen search
Fixes #6661 Fixes #6660 // FREEBIE
This commit is contained in:
parent
99d229bb45
commit
e9ae439b70
@ -314,7 +314,7 @@ public class ConversationAdapter <V extends View & BindableConversationItem>
|
||||
if (lastSeen <= 0) return -1;
|
||||
if (!isActiveCursor()) return -1;
|
||||
|
||||
int count = getItemCount();
|
||||
int count = getItemCount() - (hasHeaderView() ? 1 : 0) - (hasFooterView() ? 1 : 0);
|
||||
|
||||
for (int i=0;i<count;i++) {
|
||||
MessageRecord messageRecord = getRecordForPositionOrThrow(i);
|
||||
|
Loading…
x
Reference in New Issue
Block a user