mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
fix(api): apply feedback
This commit is contained in:
parent
9b97983977
commit
91cb7d93a4
@ -435,8 +435,9 @@ export class WebsocketGateway
|
||||
if (!sessionId) {
|
||||
throw new Error('SessionId is required!');
|
||||
}
|
||||
const allSockets = await this.io.fetchSockets();
|
||||
|
||||
return (await this.io.fetchSockets()).filter(
|
||||
return allSockets.filter(
|
||||
({ handshake, data }) =>
|
||||
!handshake.query.channel && data.sessionID === sessionId,
|
||||
);
|
||||
|
@ -327,9 +327,7 @@ const ChatProvider: React.FC<{
|
||||
);
|
||||
const quickReplies = getQuickReplies(body.messages.at(-1));
|
||||
|
||||
if (quickReplies.length) {
|
||||
setSuggestions(quickReplies);
|
||||
}
|
||||
setSuggestions(quickReplies);
|
||||
|
||||
localStorage.setItem("profile", JSON.stringify(body.profile));
|
||||
setMessages(
|
||||
|
Loading…
Reference in New Issue
Block a user