Skip to content

Commit

Permalink
fix: ignore message shouldn't be in store
Browse files Browse the repository at this point in the history
  • Loading branch information
amar-1995 committed Mar 27, 2024
1 parent 0dd7a9c commit b271e28
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/hms-video-store/src/reactive-store/HMSSDKActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,9 @@ export class HMSSDKActions<T extends HMSGenericTypes = { sessionStore: Record<st
HMSLogger.w('sendMessage', 'Failed to send message', messageInput);
throw Error(`sendMessage Failed - ${JSON.stringify(messageInput)}`);
}
if (!!messageInput.type && this.ignoredMessageTypes.includes(messageInput.type)) {
return;
}
const localPeer = this.sdk.getLocalPeer();
const hmsMessage: HMSMessage = {
read: true,
Expand Down

0 comments on commit b271e28

Please sign in to comment.