@lobehub/chat 1.25.2 → 1.25.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.25.3](https://github.com/lobehub/lobe-chat/compare/v1.25.2...v1.25.3)
6
+
7
+ <sup>Released on **2024-10-27**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix the issue of the switch assistant portal not closing.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix the issue of the switch assistant portal not closing, closes [#4500](https://github.com/lobehub/lobe-chat/issues/4500) ([83f896b](https://github.com/lobehub/lobe-chat/commit/83f896b))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 1.25.2](https://github.com/lobehub/lobe-chat/compare/v1.25.1...v1.25.2)
6
31
 
7
32
  <sup>Released on **2024-10-27**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.25.2",
3
+ "version": "1.25.3",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -1,17 +1,20 @@
1
1
  import { useCallback } from 'react';
2
2
 
3
3
  import { useQueryRoute } from '@/hooks/useQueryRoute';
4
+ import { useChatStore } from '@/store/chat';
4
5
  import { useServerConfigStore } from '@/store/serverConfig';
5
6
  import { useSessionStore } from '@/store/session';
6
7
 
7
8
  export const useSwitchSession = () => {
8
9
  const switchSession = useSessionStore((s) => s.switchSession);
10
+ const togglePortal = useChatStore((s) => s.togglePortal);
9
11
  const mobile = useServerConfigStore((s) => s.isMobile);
10
12
  const router = useQueryRoute();
11
13
 
12
14
  return useCallback(
13
15
  (id: string) => {
14
16
  switchSession(id);
17
+ togglePortal(false);
15
18
 
16
19
  if (mobile) {
17
20
  setTimeout(() => {