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 {
|
} else {
|
||||||
const threadInfo = selectThreadInfo(global, chatId, threadId);
|
const threadInfo = selectThreadInfo(global, chatId, threadId);
|
||||||
if (!threadInfo || threadInfo.lastMessageId === threadInfo.lastReadInboxMessageId) {
|
if (!threadInfo
|
||||||
|
|| (threadInfo.lastMessageId !== undefined && threadInfo.lastMessageId === threadInfo.lastReadInboxMessageId)) {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user