diff --git a/packages/hms-video-store/src/interfaces/update-listener.ts b/packages/hms-video-store/src/interfaces/update-listener.ts index c870e29fec..9db884a570 100644 --- a/packages/hms-video-store/src/interfaces/update-listener.ts +++ b/packages/hms-video-store/src/interfaces/update-listener.ts @@ -54,7 +54,6 @@ export enum HMSPollsUpdate { POLL_STOPPED, POLLS_LIST, POLL_STATS_UPDATED, - // POLL_LEADERBOARD_SHARED, } export interface HMSAudioListener { diff --git a/packages/hms-video-store/src/reactive-store/common/mapping.ts b/packages/hms-video-store/src/reactive-store/common/mapping.ts index 9cb9bc4e29..53362f5df6 100644 --- a/packages/hms-video-store/src/reactive-store/common/mapping.ts +++ b/packages/hms-video-store/src/reactive-store/common/mapping.ts @@ -31,5 +31,4 @@ export const POLL_NOTIFICATION_TYPES: PollNotificationMap = { [sdkTypes.HMSPollsUpdate.POLL_STOPPED]: HMSNotificationTypes.POLL_STOPPED, [sdkTypes.HMSPollsUpdate.POLL_STATS_UPDATED]: HMSNotificationTypes.POLL_VOTES_UPDATED, [sdkTypes.HMSPollsUpdate.POLLS_LIST]: HMSNotificationTypes.POLLS_LIST, - // [sdkTypes.HMSPollsUpdate.POLL_LEADERBOARD_SHARED]: HMSNotificationTypes.POLL_LEADERBOARD_SHARED, }; diff --git a/packages/hms-video-store/src/schema/notification.ts b/packages/hms-video-store/src/schema/notification.ts index b471bdfa91..17582be20b 100644 --- a/packages/hms-video-store/src/schema/notification.ts +++ b/packages/hms-video-store/src/schema/notification.ts @@ -75,7 +75,6 @@ export interface HMSReconnectionNotification extends BaseNotification { export interface HMSPollNotification extends BaseNotification { type: HMSNotificationTypes.POLL_STARTED | HMSNotificationTypes.POLL_STOPPED | HMSNotificationTypes.POLL_VOTES_UPDATED; - // | HMSNotificationTypes.POLL_LEADERBOARD_SHARED; data: HMSPoll; } @@ -126,7 +125,6 @@ export enum HMSNotificationTypes { POLL_STOPPED = 'POLL_STOPPED', POLL_VOTES_UPDATED = 'POLL_VOTES_UPDATED', POLLS_LIST = 'POLLS_LIST', - // POLL_LEADERBOARD_SHARED = 'POLL_LEADERBOARD_SHARED', HAND_RAISE_CHANGED = 'HAND_RAISE_CHANGED', } @@ -159,7 +157,6 @@ export type HMSNotificationMapping = { [HMSNotificationTypes.POLL_STOPPED]: HMSPollNotification; [HMSNotificationTypes.POLL_VOTES_UPDATED]: HMSPollNotification; [HMSNotificationTypes.POLLS_LIST]: HMSPollNotification; - // [HMSNotificationTypes.POLL_LEADERBOARD_SHARED]: HMSPollNotification; [HMSNotificationTypes.POLL_CREATED]: HMSPollNotification; [HMSNotificationTypes.HAND_RAISE_CHANGED]: HMSPeerNotification; }[T]; diff --git a/packages/hms-video-store/src/session-store/interactivity-center/HMSInteractivityCenter.ts b/packages/hms-video-store/src/session-store/interactivity-center/HMSInteractivityCenter.ts index ccd1a68d9f..fc4c35c1f9 100644 --- a/packages/hms-video-store/src/session-store/interactivity-center/HMSInteractivityCenter.ts +++ b/packages/hms-video-store/src/session-store/interactivity-center/HMSInteractivityCenter.ts @@ -193,8 +193,6 @@ export class InteractivityCenter implements HMSInteractivityCenter { } } }); - // To debug: the store only updates the second time this runs (opening the sidepane a second time) - console.log('zzz setting', { pollCopy: pollCopy?.questions }); this.store.setPoll(pollCopy); } async getPolls(): Promise {