Use helper class

(It did not need imports)

Co-authored-by: Travis Ralston <travpc@gmail.com>
pull/21833/head
David Baker 2021-03-05 10:32:54 +00:00 committed by GitHub
parent aaf653dd8f
commit c80cbc38dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -57,7 +57,7 @@ const WidgetContextMenu: React.FC<IProps> = ({
const canModify = userWidget || WidgetUtils.canUserModifyWidgets(roomId); const canModify = userWidget || WidgetUtils.canUserModifyWidgets(roomId);
let streamAudioStreamButton; let streamAudioStreamButton;
if (getConfigLivestreamUrl() && (app.type === "m.jitsi" || app.type === "jitsi")) { if (getConfigLivestreamUrl() && WidgetType.JITSI.matches(app.type)) {
const onStreamAudioClick = async () => { const onStreamAudioClick = async () => {
try { try {
await startJitsiAudioLivestream(widgetMessaging, roomId); await startJitsiAudioLivestream(widgetMessaging, roomId);
@ -199,4 +199,3 @@ const WidgetContextMenu: React.FC<IProps> = ({
}; };
export default WidgetContextMenu; export default WidgetContextMenu;