@defcomm/meetingsdk 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1015,6 +1015,7 @@ var SFUClient = class {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
case "reaction": {
|
|
1017
1017
|
const reaction = payload.reaction || payload;
|
|
1018
|
+
console.log("[SFUClient] RECEIVED REACTION", reaction);
|
|
1018
1019
|
if (reaction?.id && reaction?.emoji) this.onReaction(reaction);
|
|
1019
1020
|
break;
|
|
1020
1021
|
}
|
|
@@ -2236,6 +2237,9 @@ var VideoSDKCore = class {
|
|
|
2236
2237
|
this.state.addChatMessage(msg);
|
|
2237
2238
|
this.events.onChatMessage?.(msg);
|
|
2238
2239
|
},
|
|
2240
|
+
onReaction: (reaction) => {
|
|
2241
|
+
this.events.onReaction?.(reaction);
|
|
2242
|
+
},
|
|
2239
2243
|
onJoinRequested: (request) => {
|
|
2240
2244
|
const requestId = request?.request_id || request?.requestId;
|
|
2241
2245
|
const participantId = request?.user_id || request?.participantId;
|
|
@@ -2881,6 +2885,7 @@ var MeetingProvider = ({
|
|
|
2881
2885
|
emoji: reaction.emoji
|
|
2882
2886
|
}
|
|
2883
2887
|
};
|
|
2888
|
+
console.log("[MeetingProvider] PUBSUB REACTION", message);
|
|
2884
2889
|
setReactionPubSubMessages(
|
|
2885
2890
|
(previous) => [...previous, message].slice(-50)
|
|
2886
2891
|
);
|