WIP preserve local changes before duckie merge

This commit is contained in:
Lorenzune
2026-04-21 11:13:32 +02:00
parent e0174e450c
commit 9b36513def
74 changed files with 4419 additions and 408 deletions
+12
View File
@@ -48,6 +48,18 @@ export class MessengerThread
return chat;
}
public getChat(chatId: number): MessengerThreadChat
{
for(const group of this._groups)
{
const chat = group.chats.find(existingChat => (existingChat.id === chatId));
if(chat) return chat;
}
return null;
}
private pruneChats(): void
{
let totalChats = this._groups.reduce((total, current) => (total + current.chats.length), 0);