feat: add user preferences for online status and read receipts with real-time updates
- Introduced `showOnlineStatus` and `showReadReceipts` fields in the user schema and API. - Integrated real-time status broadcasting in `UsersService` via `EventsGateway`. - Updated repository and frontend user types to align with new fields. - Enhanced user update handling to support dynamic preference changes for online status.
This commit is contained in:
@@ -9,6 +9,8 @@ export interface User {
|
||||
role?: "user" | "admin" | "moderator";
|
||||
status?: "active" | "verification" | "suspended" | "pending" | "deleted";
|
||||
twoFactorEnabled?: boolean;
|
||||
showOnlineStatus?: boolean;
|
||||
showReadReceipts?: boolean;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user