Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ export const FIRST_UNREAD_ANCHOR = 0;
* want to retrieve the newest messages for a narrow, without actually
* knowing their IDs.
*/
export const LAST_MESSAGE_ANCHOR = Number.MAX_SAFE_INTEGER;
// This special value is understood by the server, corresponding to
// LARGER_THAN_MAX_MESSAGE_ID there. See #3654.
export const LAST_MESSAGE_ANCHOR = 10000000000000000; // sixteen zeroes