From c3b141e77cd69d006b6d6c0a32c5a34aa75966dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Espino=20Garc=C3=ADa?= Date: Mon, 12 Jan 2026 15:55:55 +0100 Subject: [PATCH] [MM-66858] Fix email notification screen not updating (#9364) --- app/screens/settings/notifications/notifications.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/screens/settings/notifications/notifications.tsx b/app/screens/settings/notifications/notifications.tsx index 94b5ca04d..9ef4ec519 100644 --- a/app/screens/settings/notifications/notifications.tsx +++ b/app/screens/settings/notifications/notifications.tsx @@ -64,7 +64,12 @@ const Notifications = ({ }: NotificationsProps) => { const intl = useIntl(); const serverUrl = useServerUrl(); - const notifyProps = useMemo(() => getNotificationProps(currentUser), [currentUser]); + + // We need to depend on the notifyProps object directly, + // since changes in it may not be reflected in the currentUser object + // (it is still the same object reference). + // eslint-disable-next-line react-hooks/exhaustive-deps + const notifyProps = useMemo(() => getNotificationProps(currentUser), [currentUser?.notifyProps]); const callsRingingEnabled = useMemo(() => getCallsConfig(serverUrl).EnableRinging, [serverUrl]); const [isRegistered, setIsRegistered] = useState(true);