From f85efea75800247266b770c7fb4fc630d9ec5ab6 Mon Sep 17 00:00:00 2001 From: Layne Date: Wed, 16 Mar 2022 11:56:08 -0400 Subject: [PATCH 1/2] fix sound settings --- src/components/user-settings/UserSettingsView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/user-settings/UserSettingsView.tsx b/src/components/user-settings/UserSettingsView.tsx index 478c7b3a..368657c7 100644 --- a/src/components/user-settings/UserSettingsView.tsx +++ b/src/components/user-settings/UserSettingsView.tsx @@ -4,7 +4,7 @@ import { FC, useCallback, useEffect, useState } from 'react'; import { LocalizeText, SendMessageComposer } from '../../api'; import { Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../common'; import { UserSettingsUIEvent } from '../../events'; -import { DispatchUiEvent, UseMessageEventHook, UseUiEvent } from '../../hooks'; +import { DispatchMainEvent, DispatchUiEvent, UseMessageEventHook, UseUiEvent } from '../../hooks'; export const UserSettingsView: FC<{}> = props => { @@ -46,6 +46,7 @@ export const UserSettingsView: FC<{}> = props => settingsEvent.chatType = parser.chatType; setUserSettings(settingsEvent); + DispatchMainEvent(settingsEvent); }, []); UseMessageEventHook(UserSettingsEvent, onUserSettingsEvent); @@ -92,6 +93,7 @@ export const UserSettingsView: FC<{}> = props => } if(doUpdate) setUserSettings(clone); + DispatchMainEvent(clone) }, [userSettings]); const saveRangeSlider = useCallback((type: string) => From a02696de2d67f34739389abf7804382eb4ad232c Mon Sep 17 00:00:00 2001 From: Layne Date: Wed, 16 Mar 2022 12:06:24 -0400 Subject: [PATCH 2/2] fixed thumbnail button --- .../navigator/views/room-info/NavigatorRoomInfoView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx b/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx index 0322fdd5..cac15c02 100644 --- a/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx +++ b/src/components/navigator/views/room-info/NavigatorRoomInfoView.tsx @@ -111,7 +111,7 @@ export const NavigatorRoomInfoView: FC = props => <> - { hasPermission('settings') && processAction('open_room_thumbnail_camera') } /> } + { hasPermission('settings') && processAction('open_room_thumbnail_camera') } /> }