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 fab39fd commit 70ab41dCopy full SHA for 70ab41d
src/receive_imf.rs
@@ -3497,6 +3497,17 @@ async fn apply_in_broadcast_changes(
3497
}
3498
3499
3500
+ if let Some(secret) = mime_parser.get_header(HeaderDef::ChatBroadcastSecret) {
3501
+ context
3502
+ .sql
3503
+ .execute(
3504
+ "INSERT INTO broadcasts_shared_secrets (chat_id, secret) VALUES (?, ?)
3505
+ ON CONFLICT(chat_id) DO UPDATE SET secret=excluded.chat_id",
3506
+ (chat.id, secret),
3507
+ )
3508
+ .await?;
3509
+ }
3510
+
3511
if send_event_chat_modified {
3512
context.emit_event(EventType::ChatModified(chat.id));
3513
chatlist_events::emit_chatlist_item_changed(context, chat.id);
0 commit comments