mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Merge branch 'master' into feature/sticky-notes
This commit is contained in:
22 files changed
+466
-107
No files matched your search
@@ -88,6 +88,23 @@ onNet(events.TWITTER_CREATE_TWEET_BROADCAST, (tweet: any) => {
|
||||
sendTwitterMessage(events.TWITTER_CREATE_TWEET_BROADCAST, tweet);
|
||||
});
|
||||
|
||||
/**
|
||||
* Twitter delete tweet
|
||||
*/
|
||||
RegisterNuiCallbackType(events.TWITTER_DELETE_TWEET);
|
||||
on(`__cfx_nui:${events.TWITTER_DELETE_TWEET}`, (tweetId: number) => {
|
||||
emitNet(events.TWITTER_DELETE_TWEET, tweetId);
|
||||
});
|
||||
|
||||
onNet(events.TWITTER_DELETE_TWEET_SUCCESS, () => {
|
||||
sendTwitterMessage(events.TWITTER_DELETE_TWEET_SUCCESS);
|
||||
emitNet(events.TWITTER_FETCH_TWEETS);
|
||||
});
|
||||
|
||||
onNet(events.TWITTER_DELETE_TWEET_FAILURE, () => {
|
||||
sendTwitterMessage(events.TWITTER_DELETE_TWEET_FAILURE);
|
||||
});
|
||||
|
||||
/**
|
||||
* Twitter likes
|
||||
*/
|
||||
@@ -95,3 +112,15 @@ RegisterNuiCallbackType(events.TWITTER_TOGGLE_LIKE);
|
||||
on(`__cfx_nui:${events.TWITTER_TOGGLE_LIKE}`, (tweetId: number) => {
|
||||
emitNet(events.TWITTER_TOGGLE_LIKE, tweetId);
|
||||
});
|
||||
|
||||
/**
|
||||
* Twitter reporting tweets
|
||||
*/
|
||||
RegisterNuiCallbackType(events.TWITTER_REPORT);
|
||||
on(`__cfx_nui:${events.TWITTER_REPORT}`, (tweetId: number) => {
|
||||
emitNet(events.TWITTER_REPORT, tweetId);
|
||||
});
|
||||
|
||||
onNet(events.TWITTER_REPORT_SUCCESS, () => {
|
||||
emitNet(events.TWITTER_FETCH_TWEETS);
|
||||
});
|
||||
Reference in new issue
Block a user