Skip to content

Commit 42495fb

Browse files
committed
Update Participants button for new Meet UI changes
1 parent 0e5390a commit 42495fb

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
1-
class ParticipantsEventHandler extends SidepanelEventHandler {
1+
class ParticipantsEventHandler extends SDEventHandler {
22

33
handleStreamDeckEvent = (message) => {
44
if (message.event === "toggleParticipants") {
5-
this._toggleSidepanel(1)
5+
this._toggleParticipants();
66
}
77
}
88

9-
}
9+
_toggleParticipants = () => {
10+
const participantsButton = document.querySelector('div[jsname="QbKf1d"]');
11+
if (participantsButton) {
12+
participantsButton.click();
13+
} else {
14+
throw new ControlsNotFoundError("No Participants button found!");
15+
}
16+
};
17+
18+
}

0 commit comments

Comments
 (0)