mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Fix the sticker picker (#7692)
* Fix the sticker picker Don't stop user widgets on room change: they're not room-specific. Fixes https://github.com/vector-im/element-web/issues/20797 * Use 'userWidget' prop rather than roomId being defined
This commit is contained in:
parent
98c5f50f36
commit
5b999300b2
@ -179,7 +179,8 @@ export default class AppTile extends React.Component<IProps, IState> {
|
||||
if (this.props.room.roomId == RoomViewStore.getRoomId()) return;
|
||||
const app = this.props.app;
|
||||
const isActiveWidget = ActiveWidgetStore.instance.getWidgetPersistence(app.id);
|
||||
if (!isActiveWidget) {
|
||||
// Stop the widget if it's not the active (persistent) widget and it's not a user widget
|
||||
if (!isActiveWidget && !this.props.userWidget) {
|
||||
ActiveWidgetStore.instance.destroyPersistentWidget(app.id);
|
||||
PersistedElement.destroyElement(this.persistKey);
|
||||
this.sgWidget?.stopMessaging();
|
||||
|
Loading…
Reference in New Issue
Block a user