diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 22:30:18 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 23:08:36 -0400 |
| commit | 2e2e3980ab78052be74f4007c343e69a583648fe (patch) | |
| tree | e791f18ee018a504db6da4939a8b82d1d84fe725 /ui/lib/apiServer.js | |
| parent | 1798988c5bc6ad8c2286848df14c7fa478e135d1 (diff) | |
Compute the active channel from the current routing state, not from a store.
Diffstat (limited to 'ui/lib/apiServer.js')
| -rw-r--r-- | ui/lib/apiServer.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/lib/apiServer.js b/ui/lib/apiServer.js index f6d6148..538fa85 100644 --- a/ui/lib/apiServer.js +++ b/ui/lib/apiServer.js @@ -1,5 +1,5 @@ import axios from 'axios'; -import { activeChannel, channelsList, logins, messages } from '$lib/store'; +import { channelsList, logins, messages } from '$lib/store'; export const apiServer = axios.create({ baseURL: '/api/', @@ -82,7 +82,6 @@ function onChannelEvent(data) { channelsList.update((value) => value.addChannel(data.id, data.name)) break; case 'deleted': - activeChannel.update((value) => value.deleteChannel(data.id)); channelsList.update((value) => value.deleteChannel(data.id)); messages.update((value) => value.deleteChannel(data.id)); break; |
