mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-14 02:01:02 +02:00
Remove redundant check
This commit is contained in:
parent
8c10dc1860
commit
3f60300983
@ -65,7 +65,6 @@ class WidgetEchoStore extends EventEmitter {
|
|||||||
|
|
||||||
roomHasPendingWidgetsOfType(roomId, currentRoomWidgets, type) {
|
roomHasPendingWidgetsOfType(roomId, currentRoomWidgets, type) {
|
||||||
const roomEchoState = Object.assign({}, this._roomWidgetEcho[roomId]);
|
const roomEchoState = Object.assign({}, this._roomWidgetEcho[roomId]);
|
||||||
if (roomEchoState === undefined) return false;
|
|
||||||
|
|
||||||
for (const w of currentRoomWidgets) {
|
for (const w of currentRoomWidgets) {
|
||||||
const widgetId = w.getStateKey();
|
const widgetId = w.getStateKey();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user