From 18da1f17ea359033ae44039752fd95c66ccac7c0 Mon Sep 17 00:00:00 2001 From: Raghav Aggarwal Date: Thu, 7 Dec 2023 16:51:49 +0530 Subject: [PATCH] [GH-304] Update logic to post meeting link in thread when a thread is open in RHS (#323) * [MI-3757] Update logic to post meeting link in thread when a thread is open in RHS * [MI-3757] Fixed the issue when app bar is disabled --- webapp/src/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/index.js b/webapp/src/index.js index ff70a981..0bd51ce4 100644 --- a/webapp/src/index.js +++ b/webapp/src/index.js @@ -17,7 +17,7 @@ class Plugin { registry.registerChannelHeaderButtonAction( , (channel) => { - startMeeting(channel.id)(store.dispatch, store.getState); + startMeeting(channel.id, store.getState()?.views.rhs.selectedPostId)(store.dispatch, store.getState); }, 'Start Zoom Meeting', 'Start Zoom Meeting', @@ -28,10 +28,10 @@ class Plugin { registry.registerAppBarComponent( iconURL, async (channel) => { + const state = store.getState(); if (channel) { - startMeeting(channel.id, '')(store.dispatch, store.getState); + startMeeting(channel.id, state?.views.rhs.selectedPostId)(store.dispatch, store.getState); } else { - const state = store.getState(); const teamId = state?.entities.teams.currentTeamId; const threadId = state?.views.threads.selectedThreadIdInTeam[teamId]; const baseURL = state?.entities.general.config.SiteURL;