File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2182,6 +2182,8 @@ async fn apply_group_changes(
2182
2182
2183
2183
let mut chat_contacts =
2184
2184
HashSet :: < ContactId > :: from_iter ( chat:: get_chat_contacts ( context, chat_id) . await ?) ;
2185
+ let is_from_in_chat =
2186
+ !chat_contacts. contains ( & ContactId :: SELF ) || chat_contacts. contains ( & from_id) ;
2185
2187
2186
2188
// Whether to rebuild the member list from scratch.
2187
2189
let recreate_member_list = self_added;
@@ -2317,7 +2319,7 @@ async fn apply_group_changes(
2317
2319
expected_timestamps_count
2318
2320
) ;
2319
2321
}
2320
- } else {
2322
+ } else if is_from_in_chat {
2321
2323
let mut new_members = HashSet :: from_iter ( to_ids. iter ( ) . copied ( ) ) ;
2322
2324
new_members. insert ( ContactId :: SELF ) ;
2323
2325
if !from_id. is_special ( ) {
You can’t perform that action at this time.
0 commit comments