mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-10 17:20:28 +03:00
remove unused method for push notif visibility changes
This commit is contained in:
parent
cfea393f2d
commit
4123299af5
1 changed files with 0 additions and 6 deletions
|
|
@ -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) => {
|
||||
useEffect(() => {
|
||||
const handleLogout: HttpApiEventHandlerMap[HttpApiEvent.SessionLoggedOut] = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue