feat: Add presence heartbeat for Matrix online status
- matrix-gateway: POST /internal/matrix/presence/online endpoint - usePresenceHeartbeat hook with activity tracking - Auto away after 5 min inactivity - Offline on page close/visibility change - Integrated in MatrixChatRoom component
This commit is contained in:
14
backend/domain/user/types.ts
Normal file
14
backend/domain/user/types.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Domain types for User
|
||||
*/
|
||||
|
||||
export type UserRole = 'owner' | 'admin' | 'member' | 'guest' | 'agent';
|
||||
|
||||
export interface User {
|
||||
userId: string;
|
||||
email?: string;
|
||||
name?: string;
|
||||
roles?: UserRole[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user