mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Use helper class
(It did not need imports) Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
aaf653dd8f
commit
c80cbc38dd
@ -57,7 +57,7 @@ const WidgetContextMenu: React.FC<IProps> = ({
|
||||
const canModify = userWidget || WidgetUtils.canUserModifyWidgets(roomId);
|
||||
|
||||
let streamAudioStreamButton;
|
||||
if (getConfigLivestreamUrl() && (app.type === "m.jitsi" || app.type === "jitsi")) {
|
||||
if (getConfigLivestreamUrl() && WidgetType.JITSI.matches(app.type)) {
|
||||
const onStreamAudioClick = async () => {
|
||||
try {
|
||||
await startJitsiAudioLivestream(widgetMessaging, roomId);
|
||||
@ -199,4 +199,3 @@ const WidgetContextMenu: React.FC<IProps> = ({
|
||||
};
|
||||
|
||||
export default WidgetContextMenu;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user