Stories: Fix preloading errors (#6509)

This commit is contained in:
zubiden 2025-12-08 17:39:21 +01:00 committed by Alexander Zinchuk
parent 047631473b
commit 2968c42b22

View File

@ -604,7 +604,7 @@ addActionHandler('loadStoriesMaxIds', async (global, actions, payload): Promise<
hasStories: Boolean(maxId.maxId), hasStories: Boolean(maxId.maxId),
}); });
if (maxId.maxId !== 0) { if (maxId.maxId && maxId.maxId > 0) {
peerIdsToLoad.push(peer.id); peerIdsToLoad.push(peer.id);
} }
}); });