feat: add read receipt handling based on user preferences

- Integrated `UsersService` into `MessagesService` for retrieving user preferences.
- Updated `markAsRead` functionality to respect `showReadReceipts` preference.
- Enhanced real-time read receipt notifications via `EventsGateway`.
- Added `markAsRead` method to the frontend message service.
This commit is contained in:
Mathis HERRIOT
2026-01-29 18:20:18 +01:00
parent 779bb5c112
commit f882a70343
3 changed files with 52 additions and 3 deletions

View File

@@ -55,4 +55,8 @@ export const MessageService = {
});
return data;
},
async markAsRead(conversationId: string): Promise<void> {
await api.patch(`/messages/conversations/${conversationId}/read`);
},
};