We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec1401 commit 948cefaCopy full SHA for 948cefa
src/chat.rs
@@ -567,6 +567,14 @@ impl ChatId {
567
contact_id: Option<ContactId>,
568
timestamp_sort: i64,
569
) -> Result<()> {
570
+ if contact_id == Some(ContactId::SELF) {
571
+ // Do not add protection messages to Saved Messages chat.
572
+ // This chat never gets protected and unprotected,
573
+ // we do not want the first message
574
+ // to be a protection message with an arbitrary timestamp.
575
+ return Ok(());
576
+ }
577
+
578
let text = context.stock_protection_msg(protect, contact_id).await;
579
let cmd = match protect {
580
ProtectionStatus::Protected => SystemMessage::ChatProtectionEnabled,
0 commit comments