i think i finally fixed the state management awfulness

This commit is contained in:
ari melody 2024-07-01 03:41:02 +01:00
parent 6953b49563
commit 40be540527
Signed by: ari
GPG key ID: CF99829C92678188
18 changed files with 402 additions and 417 deletions

View file

@ -1,4 +1,4 @@
import { Client } from '../client/client.js';
import { client } from '../client/client.js';
import { parseText as parseEmojis } from '../emoji.js';
import { get } from 'svelte/store';
@ -17,7 +17,7 @@ export default class User {
get mention() {
let res = "@" + this.username;
if (this.host != get(Client.get()).instance.host)
if (this.host != get(client).instance.host)
res += "@" + this.host;
return res;
}