mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
remove parameter having always the same value from create_or_lookup_mailinglist()
This commit is contained in:
@@ -528,7 +528,6 @@ async fn add_parts(
|
|||||||
let (new_chat_id, new_chat_id_blocked) = create_or_lookup_mailinglist(
|
let (new_chat_id, new_chat_id_blocked) = create_or_lookup_mailinglist(
|
||||||
context,
|
context,
|
||||||
allow_creation,
|
allow_creation,
|
||||||
Blocked::Deaddrop,
|
|
||||||
list_id,
|
list_id,
|
||||||
&mime_parser.get_subject().unwrap_or_default(),
|
&mime_parser.get_subject().unwrap_or_default(),
|
||||||
)
|
)
|
||||||
@@ -542,7 +541,6 @@ async fn add_parts(
|
|||||||
let (new_chat_id, new_chat_id_blocked) = create_or_lookup_mailinglist(
|
let (new_chat_id, new_chat_id_blocked) = create_or_lookup_mailinglist(
|
||||||
context,
|
context,
|
||||||
allow_creation,
|
allow_creation,
|
||||||
Blocked::Deaddrop,
|
|
||||||
sender,
|
sender,
|
||||||
&mime_parser.get_subject().unwrap_or_default(),
|
&mime_parser.get_subject().unwrap_or_default(),
|
||||||
)
|
)
|
||||||
@@ -1497,7 +1495,6 @@ async fn create_or_lookup_group(
|
|||||||
async fn create_or_lookup_mailinglist(
|
async fn create_or_lookup_mailinglist(
|
||||||
context: &Context,
|
context: &Context,
|
||||||
allow_creation: bool,
|
allow_creation: bool,
|
||||||
create_blocked: Blocked,
|
|
||||||
list_id_header: &str,
|
list_id_header: &str,
|
||||||
subject: &str,
|
subject: &str,
|
||||||
) -> (ChatId, Blocked) {
|
) -> (ChatId, Blocked) {
|
||||||
@@ -1534,14 +1531,14 @@ async fn create_or_lookup_mailinglist(
|
|||||||
Chattype::Mailinglist,
|
Chattype::Mailinglist,
|
||||||
&listid,
|
&listid,
|
||||||
&name,
|
&name,
|
||||||
create_blocked,
|
Blocked::Deaddrop,
|
||||||
ProtectionStatus::Unprotected,
|
ProtectionStatus::Unprotected,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
Ok(chat_id) => {
|
Ok(chat_id) => {
|
||||||
chat::add_to_chat_contacts_table(context, chat_id, DC_CONTACT_ID_SELF).await;
|
chat::add_to_chat_contacts_table(context, chat_id, DC_CONTACT_ID_SELF).await;
|
||||||
(chat_id, create_blocked)
|
(chat_id, Blocked::Deaddrop)
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
warn!(
|
warn!(
|
||||||
@@ -1551,7 +1548,7 @@ async fn create_or_lookup_mailinglist(
|
|||||||
&listid,
|
&listid,
|
||||||
e.to_string()
|
e.to_string()
|
||||||
);
|
);
|
||||||
(ChatId::new(0), create_blocked)
|
(ChatId::new(0), Blocked::Deaddrop)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user