Feat: add message_reaction event (#1619)

* Add 'message_reaction' event
This commit is contained in:
Wictor Nogueira
2022-08-09 12:09:16 -07:00
committed by GitHub
parent fd368361df
commit f2ec77f969
6 changed files with 129 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ exports.Events = {
MESSAGE_REVOKED_EVERYONE: 'message_revoke_everyone',
MESSAGE_REVOKED_ME: 'message_revoke_me',
MESSAGE_ACK: 'message_ack',
MESSAGE_REACTION: 'message_reaction',
MEDIA_UPLOADED: 'media_uploaded',
GROUP_JOIN: 'group_join',
GROUP_LEAVE: 'group_leave',

View File

@@ -50,6 +50,7 @@ exports.ExposeStore = (moduleRaidStr) => {
window.Store.StatusUtils = window.mR.findModule('setMyStatus')[0];
window.Store.ConversationMsgs = window.mR.findModule('loadEarlierMsgs')[0];
window.Store.sendReactionToMsg = window.mR.findModule('sendReactionToMsg')[0].sendReactionToMsg;
window.Store.createOrUpdateReactionsModule = window.mR.findModule('createOrUpdateReactions')[0];
window.Store.StickerTools = {
...window.mR.findModule('toWebpSticker')[0],
...window.mR.findModule('addWebpMetadata')[0]