remove unused method for push notif visibility changes

This commit is contained in:
Gigiaj 2025-06-29 23:28:30 -05:00
parent cfea393f2d
commit 4123299af5

View file

@ -127,12 +127,6 @@ function ClientRootOptions({ mx }: { mx?: MatrixClient }) {
); );
} }
const pushNotificationListener = (mx: MatrixClient, clientConfig: ClientConfig) => {
document.addEventListener('visibilitychange', () => {
togglePusher(mx, clientConfig, document.visibilityState === 'visible');
});
};
const useLogoutListener = (mx?: MatrixClient) => { const useLogoutListener = (mx?: MatrixClient) => {
useEffect(() => { useEffect(() => {
const handleLogout: HttpApiEventHandlerMap[HttpApiEvent.SessionLoggedOut] = async () => { const handleLogout: HttpApiEventHandlerMap[HttpApiEvent.SessionLoggedOut] = async () => {