mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Still WIP :)
This commit is contained in:
1 parent
a9b824d026
commit
0ffafbc950
8 files changed
+475
-246
No files matched your search
@@ -49,3 +49,28 @@ onNet(EmailEvents.SEND_EMAIL_ERROR, (err: any) => {
|
||||
sendEmailEvent(EmailEvents.SEND_EMAIL_ERROR, err);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Fetch Email Message Actions
|
||||
*/
|
||||
RegisterNuiCallbackType(EmailEvents.FETCH_MESSAGE_ACTIONS);
|
||||
on(
|
||||
`__cfx_nui:${EmailEvents.FETCH_MESSAGE_ACTIONS}`,
|
||||
(data: EmailMessageInput, cb: (err: any, data?: IEmailMessage) => void) => {
|
||||
if (ClUtils.registerNuiCallback(EmailEvents.FETCH_MESSAGE_ACTIONS, cb)) {
|
||||
emitNet(EmailEvents.FETCH_MESSAGE_ACTIONS, data);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
onNet(EmailEvents.FETCH_MESSAGE_ACTIONS_SUCCESS, (response: any) => {
|
||||
if (ClUtils.registerNuiCallbackSuccess(EmailEvents.FETCH_MESSAGE_ACTIONS, response)) {
|
||||
sendEmailEvent(EmailEvents.FETCH_MESSAGE_ACTIONS_SUCCESS, response);
|
||||
}
|
||||
});
|
||||
|
||||
onNet(EmailEvents.FETCH_MESSAGE_ACTIONS_ERROR, (err: any) => {
|
||||
if (ClUtils.registerNuiCallbackError(EmailEvents.FETCH_MESSAGE_ACTIONS, err)) {
|
||||
sendEmailEvent(EmailEvents.FETCH_MESSAGE_ACTIONS_ERROR, err);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user