Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Dec 9, 2024
1 parent dd05311 commit 3dfb2a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2786,7 +2786,10 @@ pub async fn is_contact_in_chat(
/// sending may be delayed eg. due to network problems. However, from your
/// view, you're done with the message. Sooner or later it will find its way.
pub async fn send_msg(context: &Context, chat_id: ChatId, msg: &mut Message) -> Result<MsgId> {
ensure!(!chat_id.is_special(), "chat_id cannot be a special chat: {chat_id}");
ensure!(
!chat_id.is_special(),
"chat_id cannot be a special chat: {chat_id}"
);

if msg.state != MessageState::Undefined && msg.state != MessageState::OutPreparing {
msg.param.remove(Param::GuaranteeE2ee);
Expand Down

0 comments on commit 3dfb2a2

Please sign in to comment.