This commit is contained in:
Hocuri
2025-08-07 16:26:04 +02:00
parent 40e3c34f59
commit 58d0fd39b5
5 changed files with 19 additions and 20 deletions

View File

@@ -3867,13 +3867,13 @@ pub(crate) async fn load_broadcast_shared_secret(
context: &Context,
chat_id: ChatId,
) -> Result<Option<String>> {
Ok(context
context
.sql
.query_get_value(
"SELECT secret FROM broadcasts_shared_secrets WHERE chat_id=?",
(chat_id,),
)
.await?)
.await
}
pub(crate) async fn save_broadcast_shared_secret(
@@ -5213,7 +5213,7 @@ impl Context {
}
}
async fn handle_sync_create_chat(&self, action: &SyncAction, grpid: &String) -> Result<bool> {
async fn handle_sync_create_chat(&self, action: &SyncAction, grpid: &str) -> Result<bool> {
Ok(match action {
SyncAction::CreateOutBroadcast {
chat_name,
@@ -5222,7 +5222,7 @@ impl Context {
create_broadcast_ex(
self,
Nosync,
grpid.clone(),
grpid.to_string(),
chat_name.clone(),
shared_secret.to_string(),
)