File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2908,7 +2908,11 @@ async fn prepare_send_msg(
2908
2908
CantSendReason :: ProtectionBroken | CantSendReason :: ContactRequest => {
2909
2909
// Allow securejoin messages, they are supposed to repair the verification.
2910
2910
// If the chat is a contact request, let the user accept it later.
2911
- msg. param . get_cmd ( ) == SystemMessage :: SecurejoinMessage
2911
+ // And allow leaving a contact request chat.
2912
+ matches ! (
2913
+ msg. param. get_cmd( ) ,
2914
+ SystemMessage :: SecurejoinMessage | SystemMessage :: MemberRemovedFromGroup
2915
+ )
2912
2916
}
2913
2917
// Allow to send "Member removed" messages so we can leave the group/broadcast.
2914
2918
// Necessary checks should be made anyway before removing contact
Original file line number Diff line number Diff line change @@ -2963,7 +2963,6 @@ async fn test_leave_broadcast() -> Result<()> {
2963
2963
2964
2964
tcm. section ( "Bob leaves the broadcast channel." ) ;
2965
2965
let bob_chat_id = bob_msg. chat_id ;
2966
- bob_chat_id. accept ( bob) . await ?;
2967
2966
remove_contact_from_chat ( bob, bob_chat_id, ContactId :: SELF ) . await ?;
2968
2967
2969
2968
let leave_msg = bob. pop_sent_msg ( ) . await ;
You can’t perform that action at this time.
0 commit comments