You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Transition all remaining messaging over (delete the old stuff)
This commit is contained in:
@@ -66,14 +66,7 @@ class ActiveWidgetStore extends EventEmitter {
|
||||
if (id !== this._persistentWidgetId) return;
|
||||
const toDeleteId = this._persistentWidgetId;
|
||||
|
||||
const result = WidgetMessagingStore.instance.findWidgetById(id);
|
||||
if (result) {
|
||||
if (result.room) {
|
||||
WidgetMessagingStore.instance.stopMessagingForRoomWidget(result.room, result.widget);
|
||||
} else {
|
||||
WidgetMessagingStore.instance.stopMessagingForAccountWidget(result.widget);
|
||||
}
|
||||
}
|
||||
WidgetMessagingStore.instance.stopMessagingById(id);
|
||||
|
||||
this.setWidgetPersistence(toDeleteId, false);
|
||||
this.delRoomId(toDeleteId);
|
||||
|
||||
Reference in New Issue
Block a user