@@ -23,6 +23,7 @@ pub enum ChatListItemFetchResult {
23
23
name : String ,
24
24
avatar_path : Option < String > ,
25
25
color : String ,
26
+ chat_type : u32 ,
26
27
last_updated : Option < i64 > ,
27
28
summary_text1 : String ,
28
29
summary_text2 : String ,
@@ -54,6 +55,7 @@ pub enum ChatListItemFetchResult {
54
55
///
55
56
/// See also `is_key_contact` on `Contact`.
56
57
is_encrypted : bool ,
58
+ /// deprecated 2025-07, use chat_type instead
57
59
is_group : bool ,
58
60
fresh_message_counter : usize ,
59
61
is_self_talk : bool ,
@@ -64,10 +66,6 @@ pub enum ChatListItemFetchResult {
64
66
is_pinned : bool ,
65
67
is_muted : bool ,
66
68
is_contact_request : bool ,
67
- /// Deprecated 2025-07, alias for is_out_broadcast
68
- is_broadcast : bool ,
69
- /// true if the chat type is OutBroadcast
70
- is_out_broadcast : bool ,
71
69
/// contact id if this is a dm chat (for view profile entry in context menu)
72
70
dm_chat_contact : Option < u32 > ,
73
71
was_seen_recently : bool ,
@@ -157,6 +155,7 @@ pub(crate) async fn get_chat_list_item_by_id(
157
155
name : chat. get_name ( ) . to_owned ( ) ,
158
156
avatar_path,
159
157
color,
158
+ chat_type : chat. get_type ( ) . to_u32 ( ) . context ( "unknown chat type id" ) ?,
160
159
last_updated,
161
160
summary_text1,
162
161
summary_text2,
@@ -174,8 +173,6 @@ pub(crate) async fn get_chat_list_item_by_id(
174
173
is_pinned : visibility == ChatVisibility :: Pinned ,
175
174
is_muted : chat. is_muted ( ) ,
176
175
is_contact_request : chat. is_contact_request ( ) ,
177
- is_broadcast : chat. get_type ( ) == Chattype :: OutBroadcast ,
178
- is_out_broadcast : chat. get_type ( ) == Chattype :: OutBroadcast ,
179
176
dm_chat_contact,
180
177
was_seen_recently,
181
178
last_message_type : message_type,
0 commit comments