feat: Add emoji preferences

This commit is contained in:
Jesse Wierzbinski 2024-12-04 15:04:08 +01:00
parent dca7af4b0e
commit 6934a5758e
No known key found for this signature in database
8 changed files with 125 additions and 153 deletions

View file

@ -2,10 +2,6 @@ import type { Client } from "@versia/client";
import type { RolePermission } from "@versia/client/types";
export const useCacheRefresh = (client: MaybeRef<Client | null>) => {
if (import.meta.server) {
return;
}
// Refresh custom emojis and instance data and me on every reload
watch(
[identity, client],
@ -67,6 +63,6 @@ export const useCacheRefresh = (client: MaybeRef<Client | null>) => {
}
});
},
{ flush: "sync" },
{ flush: "sync", immediate: true },
);
};