mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-21 21:01:29 +01:00
Message List: Fix redundant unread divider in new chats
This commit is contained in:
parent
b8cab81a73
commit
d7e6ebfe06
@ -596,13 +596,9 @@ export function selectFirstUnreadId(global: GlobalState, chatId: string, threadI
|
||||
: -1;
|
||||
|
||||
function findAfterLastReadId(listIds: number[]) {
|
||||
if (!lastReadId) {
|
||||
return listIds[0];
|
||||
}
|
||||
|
||||
return listIds.find((id) => {
|
||||
return (
|
||||
id > lastReadId
|
||||
(!lastReadId || id > lastReadId)
|
||||
&& byId[id]
|
||||
&& (!byId[id].isOutgoing || byId[id].isFromScheduled)
|
||||
&& id > lastReadServiceNotificationId
|
||||
|
Loading…
x
Reference in New Issue
Block a user