File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2905,9 +2905,12 @@ async fn prepare_send_msg(
2905
2905
let mut chat = Chat :: load_from_db ( context, chat_id) . await ?;
2906
2906
2907
2907
let skip_fn = |reason : & CantSendReason | match reason {
2908
- CantSendReason :: ProtectionBroken | CantSendReason :: ContactRequest => {
2908
+ CantSendReason :: ProtectionBroken => {
2909
2909
// Allow securejoin messages, they are supposed to repair the verification.
2910
- // If the chat is a contact request, let the user accept it later.
2910
+ msg. param . get_cmd ( ) == SystemMessage :: SecurejoinMessage
2911
+ }
2912
+ CantSendReason :: ContactRequest => {
2913
+ // If the chat is a contact request, allow securejoin messages and let the user accept it later.
2911
2914
// And allow leaving a contact request chat.
2912
2915
matches ! (
2913
2916
msg. param. get_cmd( ) ,
You can’t perform that action at this time.
0 commit comments