PR feedback
This commit is contained in:
parent
b6f854abe4
commit
0f32c3a018
3 changed files with 4 additions and 4 deletions
|
@ -419,7 +419,7 @@ function _startCallApp(roomId, type) {
|
||||||
if (WidgetEchoStore.roomHasPendingWidgetsOfType(roomId, currentRoomWidgets, 'jitsi')) {
|
if (WidgetEchoStore.roomHasPendingWidgetsOfType(roomId, currentRoomWidgets, 'jitsi')) {
|
||||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
|
|
||||||
Modal.createTrackedDialog('Call being placed', '', ErrorDialog, {
|
Modal.createTrackedDialog('Call already in progress', '', ErrorDialog, {
|
||||||
title: _t('Call in Progress'),
|
title: _t('Call in Progress'),
|
||||||
description: _t('A call is currently being placed!'),
|
description: _t('A call is currently being placed!'),
|
||||||
});
|
});
|
||||||
|
|
|
@ -52,9 +52,9 @@ class WidgetEchoStore extends EventEmitter {
|
||||||
for (const w of currentRoomWidgets) {
|
for (const w of currentRoomWidgets) {
|
||||||
const widgetId = w.getStateKey();
|
const widgetId = w.getStateKey();
|
||||||
// If there's no echo, or the echo still has a widget present, show the *old* widget
|
// If there's no echo, or the echo still has a widget present, show the *old* widget
|
||||||
// we don't include widgets that have changed for the same rason we don't include new ones
|
// we don't include widgets that have changed for the same reason we don't include new ones,
|
||||||
|
// ie. we'd need to fake matrix events to do so and therte's currently no need.
|
||||||
if (!roomEchoState[widgetId] || Object.keys(roomEchoState[widgetId]).length !== 0) {
|
if (!roomEchoState[widgetId] || Object.keys(roomEchoState[widgetId]).length !== 0) {
|
||||||
} else {
|
|
||||||
echoedWidgets.push(w);
|
echoedWidgets.push(w);
|
||||||
}
|
}
|
||||||
delete roomEchoState[widgetId];
|
delete roomEchoState[widgetId];
|
||||||
|
|
|
@ -22,7 +22,7 @@ import * as url from "url";
|
||||||
import WidgetEchoStore from '../stores/WidgetEchoStore';
|
import WidgetEchoStore from '../stores/WidgetEchoStore';
|
||||||
|
|
||||||
// How long we wait for the state event echo to come back from the server
|
// How long we wait for the state event echo to come back from the server
|
||||||
// before the promise is rejected
|
// before waitFor[Room/User]Widget rejects its promise
|
||||||
const WIDGET_WAIT_TIME = 20000;
|
const WIDGET_WAIT_TIME = 20000;
|
||||||
|
|
||||||
export default class WidgetUtils {
|
export default class WidgetUtils {
|
||||||
|
|
Loading…
Reference in a new issue