fix: message preview toggle is inverted in room list header (#31865)
This commit is contained in:
@@ -189,8 +189,8 @@ export class RoomListHeaderViewModel
|
||||
public toggleMessagePreview = (): void => {
|
||||
PosthogTrackers.trackInteraction("WebRoomListMessagePreviewToggle");
|
||||
|
||||
const isMessagePreviewEnabled = SettingsStore.getValue("RoomList.showMessagePreview");
|
||||
SettingsStore.setValue("RoomList.showMessagePreview", null, SettingLevel.DEVICE, !isMessagePreviewEnabled);
|
||||
const isMessagePreviewEnabled = !SettingsStore.getValue("RoomList.showMessagePreview");
|
||||
SettingsStore.setValue("RoomList.showMessagePreview", null, SettingLevel.DEVICE, isMessagePreviewEnabled);
|
||||
this.snapshot.merge({ isMessagePreviewEnabled });
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user