remove chat sorting

This commit is contained in:
marlon-erler
2024-07-23 01:07:23 +02:00
parent 267bdcfc73
commit 1e4cc8a39a
5 changed files with 0 additions and 77 deletions
-8
View File
@@ -74,18 +74,10 @@ export default class ChatModel {
this.addMessage(chatMessage);
};
// sorting
get index(): number {
return this.chatListModel.getIndexOfPrimaryChannel(
this.info.primaryChannel
);
}
// settings
setPrimaryChannel = (primaryChannel: string): void => {
this.info.primaryChannel = primaryChannel;
this.storeInfo();
this.chatListModel.updateIndices();
this.subscribe();
};