We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9acc010 commit 4a9cf27Copy full SHA for 4a9cf27
src/pages/chats/chats.ts
@@ -67,4 +67,15 @@ export class ChatsPage {
67
}
68
]);
69
70
+
71
+ removeChat(chat: Chat): void {
72
+ this.chats = this.chats.map((chatsArray: Chat[]) => {
73
+ const chatIndex = chatsArray.indexOf(chat);
74
+ if (chatIndex !== -1) {
75
+ chatsArray.splice(chatIndex, 1);
76
+ }
77
78
+ return chatsArray;
79
+ });
80
81
0 commit comments