mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-11 01:30:29 +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) => {
|
const useLogoutListener = (mx?: MatrixClient) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleLogout: HttpApiEventHandlerMap[HttpApiEvent.SessionLoggedOut] = async () => {
|
const handleLogout: HttpApiEventHandlerMap[HttpApiEvent.SessionLoggedOut] = async () => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue