Commit 1af5570e47
Unregistered key
Layout: unified · split
src/main.rs +5 −3
| @@ -130,6 +130,8 @@ fn resolve_mxid( | ||
| 130 | 130 | id: MatrixId, |
| 131 | 131 | via: Vec<OwnedServerName>, |
| 132 | 132 | ) -> IambResult<IambId> { |
| 133 | let mut view = RoomView::Main; | |
| 134 | ||
| 133 | 135 | let alias_id = match id { |
| 134 | 136 | MatrixId::Room(room_id) => room_id.into(), |
| 135 | 137 | MatrixId::RoomAlias(alias) => { |
| @@ -146,8 +148,8 @@ fn resolve_mxid( | ||
| 146 | 148 | store.application.worker.create_dm(user_id.to_owned())?.into() |
| 147 | 149 | } |
| 148 | 150 | }, |
| 149 | MatrixId::Event(alias_id, _) => { | |
| 150 | // ignore event id for now | |
| 151 | MatrixId::Event(alias_id, event_id) => { | |
| 152 | view = RoomView::Message(event_id.into()); | |
| 151 | 153 | alias_id |
| 152 | 154 | }, |
| 153 | 155 | _ => { |
| @@ -163,7 +165,7 @@ fn resolve_mxid( | ||
| 163 | 165 | .or_default() |
| 164 | 166 | .extend(via); |
| 165 | 167 | |
| 166 | Ok(IambId::Room(alias_id, RoomView::Main)) | |
| 168 | Ok(IambId::Room(alias_id, view)) | |
| 167 | 169 | } |
| 168 | 170 | |
| 169 | 171 | fn setup_screen( |
src/windows/room/message.rs +1
| @@ -221,6 +221,7 @@ impl StatefulWidget for MessageWidget<'_> { | ||
| 221 | 221 | |
| 222 | 222 | let info = rooms.get_or_default(state.room_id().to_owned()); |
| 223 | 223 | let Some(msg) = info.get_message(&state.message_id) else { |
| 224 | saved_tunables.restore(&mut settings.tunables); | |
| 224 | 225 | match &state.message_id { |
| 225 | 226 | MessageId::Origin(event_id) => { |
| 226 | 227 | self.store |