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:
@@ -55,4 +55,8 @@ export const MessageService = {
|
||||
});
|
||||
return data;
|
||||
},
|
||||
|
||||
async markAsRead(conversationId: string): Promise<void> {
|
||||
await api.patch(`/messages/conversations/${conversationId}/read`);
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user