mirror of
https://github.com/chatmail/core.git
synced 2026-05-22 16:26:31 +03:00
extract variable
This commit is contained in:
@@ -1692,17 +1692,10 @@ async fn ndn_maybe_add_info_msg(
|
|||||||
Contact::lookup_id_by_addr(context, failed_recipient, Origin::Unknown).await;
|
Contact::lookup_id_by_addr(context, failed_recipient, Origin::Unknown).await;
|
||||||
let contact = Contact::load_from_db(context, contact_id).await?;
|
let contact = Contact::load_from_db(context, contact_id).await?;
|
||||||
// Tell the user which of the recipients failed if we know that (because in a group, this might otherwise be unclear)
|
// Tell the user which of the recipients failed if we know that (because in a group, this might otherwise be unclear)
|
||||||
chat::add_info_msg(
|
let text = context
|
||||||
context,
|
.stock_string_repl_str(StockMessage::FailedSendingTo, contact.get_display_name())
|
||||||
chat_id,
|
.await;
|
||||||
context
|
chat::add_info_msg(context, chat_id, text).await;
|
||||||
.stock_string_repl_str(
|
|
||||||
StockMessage::FailedSendingTo,
|
|
||||||
contact.get_display_name(),
|
|
||||||
)
|
|
||||||
.await,
|
|
||||||
)
|
|
||||||
.await;
|
|
||||||
context.emit_event(EventType::ChatModified(chat_id));
|
context.emit_event(EventType::ChatModified(chat_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user