mirror of
https://github.com/chatmail/core.git
synced 2026-05-06 06:46:35 +03:00
refactor: remove unnecessary local variable save_param
This commit is contained in:
@@ -3546,7 +3546,6 @@ pub async fn forward_msgs(context: &Context, msg_ids: &[MsgId], chat_id: ChatId)
|
|||||||
.prepare_msg_raw(context, &mut msg, None, curr_timestamp)
|
.prepare_msg_raw(context, &mut msg, None, curr_timestamp)
|
||||||
.await?;
|
.await?;
|
||||||
curr_timestamp += 1;
|
curr_timestamp += 1;
|
||||||
let save_param = msg.param.clone();
|
|
||||||
msg.param = original_param;
|
msg.param = original_param;
|
||||||
msg.id = src_msg_id;
|
msg.id = src_msg_id;
|
||||||
|
|
||||||
@@ -3559,7 +3558,6 @@ pub async fn forward_msgs(context: &Context, msg_ids: &[MsgId], chat_id: ChatId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg.update_param(context).await?;
|
msg.update_param(context).await?;
|
||||||
msg.param = save_param;
|
|
||||||
} else {
|
} else {
|
||||||
msg.state = MessageState::OutPending;
|
msg.state = MessageState::OutPending;
|
||||||
new_msg_id = chat
|
new_msg_id = chat
|
||||||
|
|||||||
Reference in New Issue
Block a user