Export function to get last timestamp of room

This commit is contained in:
R Midhun Suresh
2025-02-24 15:37:30 +05:30
parent 98bc8e5f96
commit 1777a459f1

View File

@@ -62,7 +62,7 @@ export const sortRooms = (rooms: Room[]): Room[] => {
});
};
const getLastTs = (r: Room, userId: string): number => {
export const getLastTs = (r: Room, userId: string): number => {
const mainTimelineLastTs = ((): number => {
// Apparently we can have rooms without timelines, at least under testing
// environments. Just return MAX_INT when this happens.