Skip to content

Commit

Permalink
[GH-304] Update logic to post meeting link in thread when a thread is…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
raghavaggarwal2308 authored Dec 7, 2023
1 parent 7f468cb commit 18da1f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Plugin {
registry.registerChannelHeaderButtonAction(
<ChannelHeaderIcon/>,
(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',
Expand All @@ -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;
Expand Down

0 comments on commit 18da1f1

Please sign in to comment.