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
-9
View File
@@ -34,8 +34,6 @@ export default class ChatListViewModel {
const chatViewModel: ChatViewModel = this.createChatViewModel(chatModel);
this.chatViewModels.add(chatViewModel);
this.updateIndices();
};
untrackChat = (chatViewModel: ChatViewModel): void => {
@@ -61,13 +59,6 @@ export default class ChatListViewModel {
this.selectedChat.value = undefined;
};
// sorting
updateIndices = (): void => {
for (const chatViewModel of this.chatViewModels.value) {
chatViewModel.updateIndex();
}
};
// load
loadChats = (): void => {
this.chatViewModels.clear();
-6
View File
@@ -27,11 +27,6 @@ export default class ChatViewModel {
ChatPageType.Messages
);
// sorting
updateIndex = (): void => {
this.index.value = this.chatModel.index;
};
// view
open = (): void => {
this.chatListViewModel.openChat(this);
@@ -90,7 +85,6 @@ export default class ChatViewModel {
// load
this.loadPageSelection();
this.updateIndex();
}
}