mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 18:06:35 +03:00
Make the bots automatically accept group chat contact requests
This commit is contained in:
@@ -557,7 +557,13 @@ async fn add_parts(
|
||||
blocked: Blocked::Request,
|
||||
}) if is_bot => Blocked::Not,
|
||||
Some(ChatIdBlocked { id: _, blocked }) => blocked,
|
||||
None => Blocked::Request,
|
||||
None => {
|
||||
if is_bot {
|
||||
Blocked::Not
|
||||
} else {
|
||||
Blocked::Request
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
if chat_id.is_none() {
|
||||
|
||||
Reference in New Issue
Block a user