Commit 1af5570e47

1af5570e47253f408552cab98b009cccd7bdd512

parent: d5b1c4a2f0

Unregistered key

vaw <git@nlih.de> · 2026-10-24 22:42 UTC
committer: <noreply@github.com>

Support opening message links (#836)

Layout: unified · split

src/main.rs +5 −3
@@ -130,6 +130,8 @@ fn resolve_mxid(
130130 id: MatrixId,
131131 via: Vec<OwnedServerName>,
132132) -> IambResult<IambId> {
133 let mut view = RoomView::Main;
134
133135 let alias_id = match id {
134136 MatrixId::Room(room_id) => room_id.into(),
135137 MatrixId::RoomAlias(alias) => {
@@ -146,8 +148,8 @@ fn resolve_mxid(
146148 store.application.worker.create_dm(user_id.to_owned())?.into()
147149 }
148150 },
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());
151153 alias_id
152154 },
153155 _ => {
@@ -163,7 +165,7 @@ fn resolve_mxid(
163165 .or_default()
164166 .extend(via);
165167
166 Ok(IambId::Room(alias_id, RoomView::Main))
168 Ok(IambId::Room(alias_id, view))
167169}
168170
169171fn setup_screen(
src/windows/room/message.rs +1
@@ -221,6 +221,7 @@ impl StatefulWidget for MessageWidget<'_> {
221221
222222 let info = rooms.get_or_default(state.room_id().to_owned());
223223 let Some(msg) = info.get_message(&state.message_id) else {
224 saved_tunables.restore(&mut settings.tunables);
224225 match &state.message_id {
225226 MessageId::Origin(event_id) => {
226227 self.store