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/client/lib/lists/MessageList.ts

12 lines
351 B

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