mirror of
https://github.com/danog/telegram-tt.git
synced 2025-01-21 21:01:29 +01:00
Comments: Fix skipping to last (#1551)
This commit is contained in:
parent
04754af53a
commit
5d3ceb9e64
@ -571,7 +571,8 @@ export function selectFirstUnreadId(global: GlobalState, chatId: string, threadI
|
||||
}
|
||||
} else {
|
||||
const threadInfo = selectThreadInfo(global, chatId, threadId);
|
||||
if (!threadInfo || threadInfo.lastMessageId === threadInfo.lastReadInboxMessageId) {
|
||||
if (!threadInfo
|
||||
|| (threadInfo.lastMessageId !== undefined && threadInfo.lastMessageId === threadInfo.lastReadInboxMessageId)) {
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user