mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 23:16:30 +03:00
refactor: replace async RwLock with sync RwLock for stock strings
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user