mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
refactor(server/contacts): Implement singleton architecture
This commit is contained in:
1 parent
16471ed1df
commit
f8f722c8d2
9 files changed
+200
-136
No files matched your search
+6
-2
@@ -11,13 +11,16 @@ export interface IContactAlert {
|
||||
setAlert: (type: string) => void;
|
||||
}
|
||||
|
||||
export interface Contact {
|
||||
id: number;
|
||||
export interface PreDBContact {
|
||||
display: string;
|
||||
number: string;
|
||||
avatar?: string;
|
||||
}
|
||||
|
||||
export interface Contact extends PreDBContact {
|
||||
id: number;
|
||||
}
|
||||
|
||||
export enum ContactEvents {
|
||||
SEND_CONTACTS = 'npwd:sendContacts',
|
||||
GET_CONTACTS = 'npwd:getContacts',
|
||||
@@ -29,4 +32,5 @@ export enum ContactEvents {
|
||||
UPDATE_CONTACT_SUCCESS = 'npwd:updateContactSuccess',
|
||||
ACTION_RESULT = 'npwd:contactActionResult',
|
||||
SEND_ALERT = 'npwd:contactSetAlert',
|
||||
MAIN_CLIENT_LISTER = 'npwd:contactMainListener',
|
||||
}
|
||||
Reference in new issue
Block a user