summaryrefslogtreecommitdiff
path: root/ui/lib/state/local
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2025-06-11 12:39:28 -0400
committerOwen Jacobson <owen@grimoire.ca>2025-06-11 12:39:28 -0400
commit6e6b068ae2adc8c5ef8acb633dcadfbdc3221b61 (patch)
tree79831028416b0d6934f32961a3fc77d8b004369e /ui/lib/state/local
parent1f009e06fd6db82a91536eec88ef3232267385bf (diff)
tools/reformat
Diffstat (limited to 'ui/lib/state/local')
-rw-r--r--ui/lib/state/local/channels.svelte.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/lib/state/local/channels.svelte.js b/ui/lib/state/local/channels.svelte.js
index e3ee8df..669aa1e 100644
--- a/ui/lib/state/local/channels.svelte.js
+++ b/ui/lib/state/local/channels.svelte.js
@@ -14,7 +14,7 @@ class Channel {
return new Channel({
draft,
lastReadAt: lastReadAt == null ? null : DateTime.fromISO(lastReadAt),
- scrollPosition
+ scrollPosition,
});
}
@@ -29,7 +29,7 @@ class Channel {
return {
draft,
lastReadAt: lastReadAt?.toISO(),
- scrollPosition
+ scrollPosition,
};
}
}
@@ -49,7 +49,7 @@ export class Channels {
static fromStored(stored) {
const loaded = Object.keys(stored).map((channelId) => [
channelId,
- Channel.fromStored(stored[channelId])
+ Channel.fromStored(stored[channelId]),
]);
const all = new SvelteMap(loaded);
return new Channels({ all });
@@ -98,9 +98,9 @@ export class Channels {
this.all.entries(),
(stored, [channelId, channel]) => ({
...stored,
- [channelId]: channel.toStored()
+ [channelId]: channel.toStored(),
}),
- {}
+ {},
);
}