You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Use helper class
(It did not need imports) Co-authored-by: Travis Ralston <travpc@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user