Use helper class

(It did not need imports)

Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
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

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;