File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
labs/multiverse/src/widgets/room_view Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ impl StatefulWidget for &mut TimelineView<'_> {
54
54
fn format_timeline_item ( item : & Arc < TimelineItem > ) -> Option < ListItem < ' _ > > {
55
55
let item = match item. kind ( ) {
56
56
TimelineItemKind :: Event ( ev) => {
57
+ // TODO: Once the SDK allows you to filter out messages that are part of a
58
+ // thread, switch to that mechanism instead of manually returning `None` here.
57
59
if ev. content ( ) . thread_root ( ) . is_some ( ) {
58
60
return None ;
59
61
}
@@ -119,8 +121,10 @@ fn format_text_message(
119
121
120
122
if let Some ( thread_summary) = thread_summary {
121
123
match thread_summary. latest_event {
122
- TimelineDetails :: Unavailable => { }
123
- TimelineDetails :: Pending => { }
124
+ TimelineDetails :: Unavailable | TimelineDetails :: Pending => {
125
+ let thread_line = Line :: from ( " 💬 ..." ) ;
126
+ lines. push ( thread_line) ;
127
+ }
124
128
TimelineDetails :: Ready ( e) => {
125
129
let sender = e. sender ;
126
130
let content = e. content . as_message ( ) . map ( |m| m. msgtype ( ) ) ;
You can’t perform that action at this time.
0 commit comments