Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 806cd26

Browse files
authored
Fix the sticker picker (#7692) (#7695)
* Fix the sticker picker Don't stop user widgets on room change: they're not room-specific. Fixes element-hq/element-web#20797 * Use 'userWidget' prop rather than roomId being defined
1 parent 6c16a2c commit 806cd26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/views/elements/AppTile.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ export default class AppTile extends React.Component<IProps, IState> {
179179
if (this.props.room.roomId == RoomViewStore.getRoomId()) return;
180180
const app = this.props.app;
181181
const isActiveWidget = ActiveWidgetStore.instance.getWidgetPersistence(app.id);
182-
if (!isActiveWidget) {
182+
// Stop the widget if it's not the active (persistent) widget and it's not a user widget
183+
if (!isActiveWidget && !this.props.userWidget) {
183184
ActiveWidgetStore.instance.destroyPersistentWidget(app.id);
184185
PersistedElement.destroyElement(this.persistKey);
185186
this.sgWidget?.stopMessaging();

0 commit comments

Comments
 (0)