Fix: onFinished added which closes the menu (#11647)

Co-authored-by: Manan Sadana <manan.sadana@cnhteam.onmicrosoft.com>
This commit is contained in:
Manan Sadana 2023-09-22 03:46:47 +05:30 committed by GitHub
parent 60bed46014
commit 6504fff25c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -104,6 +104,7 @@ export const HomeButtonContextMenu: React.FC<ComponentProps<typeof SpaceContextM
label={_t("Show all rooms")} label={_t("Show all rooms")}
active={allRoomsInHome} active={allRoomsInHome}
onClick={() => { onClick={() => {
onFinished();
SettingsStore.setValue("Spaces.allRoomsInHome", null, SettingLevel.ACCOUNT, !allRoomsInHome); SettingsStore.setValue("Spaces.allRoomsInHome", null, SettingLevel.ACCOUNT, !allRoomsInHome);
}} }}
/> />