BlueGit

ict rusty-teams

feat(activity): a channel activity opens only its post like Teams

- the jump enters the post's conversation view (Back to channel) instead of the channel feed
- the target reply is marked when it is in the thread, else the root

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-05 · 3 weeks ago

Hash
d9720b9ad097c08da64dc84b211bd23d259f2da9
Parent
adac7549
1 file changed +14 −0
crates/app/src/views/conversation.rs +14 −0
@@ -1226,9 +1226,23 @@ impl ConversationView {
1226 1226 if in_channel {
1227 1227 self.pane = ChannelPane::Posts;
1228 1228 self.enter_feed_mode();
1229 self.stop_typing(cx);
1230 self.enter_thread_mode(row_key.clone(), cx);
1229 1231 }
1230 1232 self.reload_pending(cx);
1231 1233 self.rebuild(true, cx);
1234 if in_channel {
1235 self.refresh_thread(row_key.clone(), cx);
1236 let shown_alone = self
1237 .rows
1238 .borrow()
1239 .iter()
1240 .any(|row| row.key() == message_id);
1241 if shown_alone {
1242 self.reveal_row(message_id.to_owned(), message_id.to_owned(), cx);
1243 return;
1244 }
1245 }
1232 1246 self.reveal_row(row_key, message_id.to_owned(), cx);
1233 1247 }
1234 1248
@@ -1226,9 +1226,23 @@ impl ConversationView {
1226 if in_channel {
1226 if in_channel {
1227 self.pane = ChannelPane::Posts;
1227 self.pane = ChannelPane::Posts;
1228 self.enter_feed_mode();
1228 self.enter_feed_mode();
1229 self.stop_typing(cx);
1230 self.enter_thread_mode(row_key.clone(), cx);
1229 }
1231 }
1230 self.reload_pending(cx);
1232 self.reload_pending(cx);
1231 self.rebuild(true, cx);
1233 self.rebuild(true, cx);
1234 if in_channel {
1235 self.refresh_thread(row_key.clone(), cx);
1236 let shown_alone = self
1237 .rows
1238 .borrow()
1239 .iter()
1240 .any(|row| row.key() == message_id);
1241 if shown_alone {
1242 self.reveal_row(message_id.to_owned(), message_id.to_owned(), cx);
1243 return;
1244 }
1245 }
1232 self.reveal_row(row_key, message_id.to_owned(), cx);
1246 self.reveal_row(row_key, message_id.to_owned(), cx);
1233 }
1247 }
1234
1248