feat(messenger): SENT/READ status on thread chats + mark-read helper

This commit is contained in:
simoleo89
2026-06-02 20:16:08 +02:00
parent f9c65000bd
commit f5e179f6c9
4 changed files with 65 additions and 0 deletions
+10
View File
@@ -99,6 +99,16 @@ export class MessengerThread
this._unreadCount = 0;
}
public setMessagesReadFromUser(userId: number): void
{
for(const group of this._groups)
{
if(group.userId !== userId) continue;
for(const chat of group.chats) chat.setStatus(MessengerThreadChat.READ);
}
}
public get threadId(): number
{
return this._threadId;