summaryrefslogtreecommitdiff
path: root/ui/lib/session.svelte.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/lib/session.svelte.js')
-rw-r--r--ui/lib/session.svelte.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/lib/session.svelte.js b/ui/lib/session.svelte.js
index 432fad2..d742dbe 100644
--- a/ui/lib/session.svelte.js
+++ b/ui/lib/session.svelte.js
@@ -36,7 +36,7 @@ class Message {
channel,
sender: users.get(sender),
body,
- renderedBody
+ renderedBody,
});
}
@@ -56,12 +56,12 @@ class Session {
currentUser = $derived(this.remote.currentUser);
users = $derived(this.remote.users.all);
messages = $derived(
- this.remote.messages.all.map((message) => Message.fromRemote(message, this.users))
+ this.remote.messages.all.map((message) => Message.fromRemote(message, this.users)),
);
channels = $derived(
this.remote.channels.all.map((channel) =>
- Channel.fromRemote(channel, this.messages, this.local.all)
- )
+ Channel.fromRemote(channel, this.messages, this.local.all),
+ ),
);
static boot({ user, users, channels, messages, resume_point, heartbeat }) {
@@ -71,7 +71,7 @@ class Session {
channels,
messages,
resumePoint: resume_point,
- heartbeat
+ heartbeat,
});
const local = l.Channels.fromLocalStorage();
return new Session(remote, local);
@@ -84,7 +84,7 @@ class Session {
channels,
messages,
resumePoint: resume_point,
- heartbeat
+ heartbeat,
});
}