diff options
Diffstat (limited to 'ui/lib/state/local/channels.svelte.js')
| -rw-r--r-- | ui/lib/state/local/channels.svelte.js | 10 |
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(), }), - {} + {}, ); } |
