diff --git a/frontend/src/animations.js b/frontend/src/animations.js
new file mode 100644
index 0000000..878ab11
--- /dev/null
+++ b/frontend/src/animations.js
@@ -0,0 +1,12 @@
+import { fade, fly } from "svelte/transition";
+import { getItem } from "./storage";
+
+export function maybeFly(...e) {
+ if (getItem("doAnimations"))
+ return fly(...e);
+}
+
+export function maybeFade(...e) {
+ if (getItem("doAnimations"))
+ return fade(...e);
+}
diff --git a/frontend/src/components/Message.svelte b/frontend/src/components/Message.svelte
index d07e1be..20450b8 100644
--- a/frontend/src/components/Message.svelte
+++ b/frontend/src/components/Message.svelte
@@ -49,7 +49,7 @@
{ message.author_username }
{ message.content }
- {#if $userInfoStore && message.author_id === $userInfoStore.id}
+ {#if userInfoStore.value && message.author_id === userInfoStore.value.id}
diff --git a/frontend/src/components/Sidebar.svelte b/frontend/src/components/Sidebar.svelte
index 62b019f..aab85d6 100644
--- a/frontend/src/components/Sidebar.svelte
+++ b/frontend/src/components/Sidebar.svelte
@@ -2,6 +2,7 @@
import { HashIcon, PlusIcon, MoreVerticalIcon, SettingsIcon } from "svelte-feather-icons";
import { quadInOut } from "svelte/easing";
import { fly } from "svelte/transition";
+import { maybeFade } from "../animations";
import { channels, overlayStore, selectedChannel, showChannelView, showSidebar, smallViewport, userInfoStore } from "../stores";
import UserTopBar from "./UserTopBar.svelte";
@@ -30,7 +31,7 @@
};
-