The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/app/user-status/client/lib/userStatus.ts

52 lines
900 B

import { UserStatus } from '@rocket.chat/core-typings';
type Status = {
name: string;
localizeName: boolean;
id: string;
statusType: UserStatus;
};
type UserStatusTypes = {
packages: any;
list: {
[status: string]: Status;
};
};
export const userStatus: UserStatusTypes = {
packages: {
base: {
render(html: string): string {
return html;
},
},
},
list: {
online: {
name: UserStatus.ONLINE,
localizeName: true,
id: UserStatus.ONLINE,
statusType: UserStatus.ONLINE,
},
away: {
name: UserStatus.AWAY,
localizeName: true,
id: UserStatus.AWAY,
statusType: UserStatus.AWAY,
},
busy: {
name: UserStatus.BUSY,
localizeName: true,
id: UserStatus.BUSY,
statusType: UserStatus.BUSY,
},
offline: {
name: UserStatus.OFFLINE,
localizeName: true,
id: UserStatus.OFFLINE,
statusType: UserStatus.OFFLINE,
},
},
} as const;