mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-05 15:00:30 +03:00
lint(presence): make eslint happy
This commit is contained in:
parent
ecf65b7ca7
commit
74e64fb60a
1 changed files with 7 additions and 6 deletions
|
|
@ -255,6 +255,8 @@ function MessageNotifications() {
|
||||||
|
|
||||||
function UpdatePresence() {
|
function UpdatePresence() {
|
||||||
const mx = useMatrixClient();
|
const mx = useMatrixClient();
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
const onFocus = () => {
|
const onFocus = () => {
|
||||||
mx.setSyncPresence(SetPresence.Online);
|
mx.setSyncPresence(SetPresence.Online);
|
||||||
};
|
};
|
||||||
|
|
@ -262,7 +264,6 @@ function UpdatePresence() {
|
||||||
mx.setSyncPresence(SetPresence.Unavailable);
|
mx.setSyncPresence(SetPresence.Unavailable);
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
window.addEventListener("focus", onFocus);
|
window.addEventListener("focus", onFocus);
|
||||||
window.addEventListener("blur", onBlur);
|
window.addEventListener("blur", onBlur);
|
||||||
onFocus();
|
onFocus();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue