Skip to content

Commit

Permalink
Revert "[GH-304] Update logic to post meeting link in thread when a t…
Browse files Browse the repository at this point in the history
…hread is open in RHS (#323)" (#329)

This reverts commit 18da1f1.
  • Loading branch information
raghavaggarwal2308 authored Dec 28, 2023
1 parent 925f6f9 commit 8f844a9
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.getState()?.views.rhs.selectedPostId)(store.dispatch, store.getState);
startMeeting(channel.id)(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, state?.views.rhs.selectedPostId)(store.dispatch, store.getState);
startMeeting(channel.id, '')(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 8f844a9

Please sign in to comment.