@lobehub/chat 0.72.1 → 0.72.2
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 0.72.2](https://github.com/lobehub/lobe-chat/compare/v0.72.1...v0.72.2)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-09-09**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix mobile switch when session selected.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix mobile switch when session selected, closes [#167](https://github.com/lobehub/lobe-chat/issues/167) ([40d8a11](https://github.com/lobehub/lobe-chat/commit/40d8a11))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.72.1](https://github.com/lobehub/lobe-chat/compare/v0.72.0...v0.72.1)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-09-09**</sup>
|
package/package.json
CHANGED
|
@@ -161,10 +161,13 @@ export const createSessionSlice: StateCreator<
|
|
|
161
161
|
Router.push(SESSION_CHAT_URL(id, get().isMobile));
|
|
162
162
|
},
|
|
163
163
|
switchSession: (sessionId = INBOX_SESSION_ID) => {
|
|
164
|
-
|
|
164
|
+
const { isMobile } = get();
|
|
165
|
+
// mobile also should switch session due to chat mobile route is different
|
|
166
|
+
// fix https://github.com/lobehub/lobe-chat/issues/163
|
|
167
|
+
if (!isMobile && get().activeId === sessionId) return;
|
|
165
168
|
|
|
166
169
|
get().activeSession(sessionId);
|
|
167
170
|
|
|
168
|
-
Router.push(SESSION_CHAT_URL(sessionId,
|
|
171
|
+
Router.push(SESSION_CHAT_URL(sessionId, isMobile));
|
|
169
172
|
},
|
|
170
173
|
});
|