refactor: replace async RwLock with sync RwLock for stock strings

This commit is contained in:
link2xt
2026-03-25 09:41:11 +01:00
committed by l
parent d1f1633c60
commit 2637c3bea4
29 changed files with 309 additions and 412 deletions

View File

@@ -229,9 +229,9 @@ impl Context {
let mut msg = Message {
chat_id,
viewtype: Viewtype::Text,
text: stock_str::sync_msg_body(self).await,
text: stock_str::sync_msg_body(self),
hidden: true,
subject: stock_str::sync_msg_subject(self).await,
subject: stock_str::sync_msg_subject(self),
..Default::default()
};
msg.param.set_cmd(SystemMessage::MultiDeviceSync);