mirror of https://github.com/vector-im/riot-web
Use helper class
(It did not need imports) Co-authored-by: Travis Ralston <travpc@gmail.com>pull/21833/head
parent
aaf653dd8f
commit
c80cbc38dd
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue