style: fix Prettier formatting in usePresenceUpdater
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,10 +15,8 @@ export function usePresenceUpdater() {
|
|||||||
const lastActivityRef = useRef(0);
|
const lastActivityRef = useRef(0);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const setOnline = () =>
|
const setOnline = () => mx.setPresence({ presence: 'online' }).catch(() => undefined);
|
||||||
mx.setPresence({ presence: 'online' }).catch(() => undefined);
|
const setUnavailable = () => mx.setPresence({ presence: 'unavailable' }).catch(() => undefined);
|
||||||
const setUnavailable = () =>
|
|
||||||
mx.setPresence({ presence: 'unavailable' }).catch(() => undefined);
|
|
||||||
|
|
||||||
// When the user hides presence, broadcast offline and do nothing else.
|
// When the user hides presence, broadcast offline and do nothing else.
|
||||||
if (hidePresence) {
|
if (hidePresence) {
|
||||||
|
|||||||
Reference in New Issue
Block a user