mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 12:56:30 +03:00
fix: use 0 timestamps if Chat-Group-Member-Timestamps is not set
This commit is contained in:
@@ -2093,13 +2093,14 @@ async fn create_group(
|
||||
}
|
||||
members.extend(to_ids);
|
||||
|
||||
chat::add_to_chat_contacts_table(
|
||||
context,
|
||||
mime_parser.timestamp_sent,
|
||||
new_chat_id,
|
||||
&members,
|
||||
)
|
||||
.await?;
|
||||
// Add all members with 0 timestamp
|
||||
// because we don't know the real timestamp of their addition.
|
||||
// This will allow other senders who support
|
||||
// `Chat-Group-Member-Timestamps` to overwrite
|
||||
// timestamps later.
|
||||
let timestamp = 0;
|
||||
|
||||
chat::add_to_chat_contacts_table(context, timestamp, new_chat_id, &members).await?;
|
||||
}
|
||||
|
||||
context.emit_event(EventType::ChatModified(new_chat_id));
|
||||
|
||||
Reference in New Issue
Block a user