Export function to get last timestamp of room
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user