The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/client/lib/lists/MessageList.ts

13 lines
370 B

import type { IMessage } from '@rocket.chat/core-typings';
import { RecordList } from './RecordList';
export class MessageList<T extends IMessage = IMessage> extends RecordList<T> {
protected override filter(message: T): boolean {
return message._hidden !== true;
}
protected override compare(a: T, b: T): number {
return a.ts.getTime() - b.ts.getTime();
}
}