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