mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
const i18n = getContext('i18n');
|
const i18n = getContext('i18n');
|
||||||
|
|
||||||
import { user as _user } from '$lib/stores';
|
import { user as _user, socket } from '$lib/stores';
|
||||||
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
|
import { WEBUI_API_BASE_URL, WEBUI_BASE_URL } from '$lib/constants';
|
||||||
import { getDMChannelByUserId } from '$lib/apis/channels';
|
import { getDMChannelByUserId } from '$lib/apis/channels';
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (res) {
|
if (res) {
|
||||||
console.log(res);
|
$socket.emit('join-channels', { auth: { token: $_user?.token } });
|
||||||
goto(`/channels/${res.id}`);
|
goto(`/channels/${res.id}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user