Skip to content

Commit 41df6be

Browse files
committed
fix: move group name timestamp update up in create_send_msg_jobs()
Otherwise timestamp is not updated if bcc-self is disabled and there are no recipients.
1 parent bd78199 commit 41df6be

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/chat.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3012,6 +3012,12 @@ pub(crate) async fn create_send_msg_jobs(context: &Context, msg: &mut Message) -
30123012
let from = context.get_primary_self_addr().await?;
30133013
let lowercase_from = from.to_lowercase();
30143014

3015+
if msg.param.get_cmd() == SystemMessage::GroupNameChanged {
3016+
msg.chat_id
3017+
.update_timestamp(context, Param::GroupNameTimestamp, msg.timestamp_sort)
3018+
.await?;
3019+
}
3020+
30153021
// Send BCC to self if it is enabled.
30163022
//
30173023
// Previous versions of Delta Chat did not send BCC self
@@ -3049,11 +3055,6 @@ pub(crate) async fn create_send_msg_jobs(context: &Context, msg: &mut Message) -
30493055
msg.state = MessageState::OutDelivered;
30503056
return Ok(Vec::new());
30513057
}
3052-
if msg.param.get_cmd() == SystemMessage::GroupNameChanged {
3053-
msg.chat_id
3054-
.update_timestamp(context, Param::GroupNameTimestamp, msg.timestamp_sort)
3055-
.await?;
3056-
}
30573058

30583059
let rendered_msg = match mimefactory.render(context).await {
30593060
Ok(res) => Ok(res),

0 commit comments

Comments
 (0)