Commit 2230aee
committed
Fix ChatEditor message refresh logic
- Removed duplicate call to `ChatManager::instance().getViewingChat()`.
- Updated logic so that `refreshMessages()` is only invoked when the
loaded conversation contains more than one message (a new conversation
has a single root node).
- Simplified the `convId` handling; the empty‑check was unnecessary
because the editor is only opened with a valid ID.
- Added a comment explaining the one‑root‑message rule for new
conversations.1 parent b156b0d commit 2230aee
1 file changed
+6
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
152 | | - | |
153 | 154 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 155 | + | |
| 156 | + | |
159 | 157 | | |
160 | 158 | | |
161 | 159 | | |
| |||
0 commit comments