Commit 444ee62b4f
444ee62b4f370b422921588214e3854594fbd92f
parent: be3d27d4e6
Unregistered key
vaw <git@nlih.de> · 2026-09-21 22:34 UTC
committer: <noreply@github.com>
Jump to `:replied` target after loading it (#728)
Layout: unified · split
src/base.rs
+1 −1
| @@ -2270,7 +2270,7 @@ pub struct Need { |
| 2270 | } |
2270 | } |
| 2271 | |
2271 | |
| 2272 | /// Things that need loading for different rooms. |
2272 | /// Things that need loading for different rooms. |
| 2273 | #[derive(Default)] |
2273 | #[derive(Default, Debug)] |
| 2274 | pub struct RoomNeeds { |
2274 | pub struct RoomNeeds { |
| 2275 | needs: HashMap<OwnedRoomId, Need>, |
2275 | needs: HashMap<OwnedRoomId, Need>, |
| 2276 | } |
2276 | } |
src/windows/room/chat.rs
+1 −8
| @@ -558,14 +558,7 @@ impl ChatState { |
| 558 | return Err(UIError::Failure(msg.into())); |
558 | return Err(UIError::Failure(msg.into())); |
| 559 | }; |
559 | }; |
| 560 | |
560 | |
| 561 | let Some(key) = info.get_message_key(&reply) else { |
561 | self.jump_to_message(reply, store) |
| 562 | store.application.need_load.need_message(self.room_id.clone(), reply); |
| |
| 563 | let msg = "Replied to message will be loaded in the background"; |
| |
| 564 | return Err(UIError::Failure(msg.into())); |
| |
| 565 | }; |
| |
| 566 | |
| |
| 567 | self.scrollback.goto_message(key.clone()); |
| |
| 568 | Ok(None) |
| |
| 569 | }, |
562 | }, |
| 570 | MessageAction::Unreact(reaction, literal) => { |
563 | MessageAction::Unreact(reaction, literal) => { |
| 571 | let emoji = match reaction { |
564 | let emoji = match reaction { |
src/worker.rs
+2
| @@ -212,6 +212,8 @@ async fn load_plans(store: &AsyncProgramStore) -> Vec<Plan> { |
| 212 | } |
212 | } |
| 213 | |
213 | |
| 214 | plan.push(Plan::Messages(room_id.to_owned(), message_need)); |
214 | plan.push(Plan::Messages(room_id.to_owned(), message_need)); |
| |
215 | } else { |
| |
216 | need_load.need_messages_all(room_id.clone(), message_need); |
| 215 | } |
217 | } |
| 216 | } |
218 | } |
| 217 | if need.members { |
219 | if need.members { |