@@ -476,7 +476,7 @@ impl ChatId {
476476
477477 /// Adds message "Messages are end-to-end encrypted".
478478 pub ( crate ) async fn add_e2ee_notice ( self , context : & Context , timestamp : i64 ) -> Result < ( ) > {
479- let text = stock_str:: messages_e2ee_info_msg ( context) . await ;
479+ let text = stock_str:: messages_e2ee_info_msg ( context) ;
480480 add_info_msg_with_cmd (
481481 context,
482482 self ,
@@ -669,7 +669,7 @@ SELECT id, rfc724_mid, pre_rfc724_mid, timestamp, ?, 1 FROM msgs WHERE chat_id=?
669669 }
670670
671671 if chat. is_self_talk ( ) {
672- let mut msg = Message :: new_text ( stock_str:: self_deleted_msg_body ( context) . await ) ;
672+ let mut msg = Message :: new_text ( stock_str:: self_deleted_msg_body ( context) ) ;
673673 add_device_msg ( context, None , Some ( & mut msg) ) . await ?;
674674 }
675675 chatlist_events:: emit_chatlist_changed ( context) ;
@@ -1155,10 +1155,10 @@ SELECT id, rfc724_mid, pre_rfc724_mid, timestamp, ?, 1 FROM msgs WHERE chat_id=?
11551155 pub async fn get_encryption_info ( self , context : & Context ) -> Result < String > {
11561156 let chat = Chat :: load_from_db ( context, self ) . await ?;
11571157 if !chat. is_encrypted ( context) . await ? {
1158- return Ok ( stock_str:: encr_none ( context) . await ) ;
1158+ return Ok ( stock_str:: encr_none ( context) ) ;
11591159 }
11601160
1161- let mut ret = stock_str:: messages_are_e2ee ( context) . await + "\n " ;
1161+ let mut ret = stock_str:: messages_are_e2ee ( context) + "\n " ;
11621162
11631163 for & contact_id in get_chat_contacts ( context, self )
11641164 . await ?
@@ -1392,7 +1392,7 @@ impl Chat {
13921392 . context ( format ! ( "Failed loading chat {chat_id} from database" ) ) ?;
13931393
13941394 if chat. id . is_archived_link ( ) {
1395- chat. name = stock_str:: archived_chats ( context) . await ;
1395+ chat. name = stock_str:: archived_chats ( context) ;
13961396 } else {
13971397 if chat. typ == Chattype :: Single && chat. name . is_empty ( ) {
13981398 // chat.name is set to contact.display_name on changes,
@@ -1416,9 +1416,9 @@ impl Chat {
14161416 chat. name = chat_name;
14171417 }
14181418 if chat. param . exists ( Param :: Selftalk ) {
1419- chat. name = stock_str:: saved_messages ( context) . await ;
1419+ chat. name = stock_str:: saved_messages ( context) ;
14201420 } else if chat. param . exists ( Param :: Devicetalk ) {
1421- chat. name = stock_str:: device_messages ( context) . await ;
1421+ chat. name = stock_str:: device_messages ( context) ;
14221422 }
14231423 }
14241424
@@ -2306,15 +2306,10 @@ pub(crate) async fn update_special_chat_names(context: &Context) -> Result<()> {
23062306 update_special_chat_name (
23072307 context,
23082308 ContactId :: DEVICE ,
2309- stock_str:: device_messages ( context) . await ,
2310- )
2311- . await ?;
2312- update_special_chat_name (
2313- context,
2314- ContactId :: SELF ,
2315- stock_str:: saved_messages ( context) . await ,
2309+ stock_str:: device_messages ( context) ,
23162310 )
23172311 . await ?;
2312+ update_special_chat_name ( context, ContactId :: SELF , stock_str:: saved_messages ( context) ) . await ?;
23182313 Ok ( ( ) )
23192314}
23202315
@@ -3068,7 +3063,7 @@ async fn donation_request_maybe(context: &Context) -> Result<()> {
30683063 let ts = if ts == 0 || msg_cnt. await ? < 100 {
30693064 now. saturating_add ( secs_between_checks)
30703065 } else {
3071- let mut msg = Message :: new_text ( stock_str:: donation_request ( context) . await ) ;
3066+ let mut msg = Message :: new_text ( stock_str:: donation_request ( context) ) ;
30723067 add_device_msg ( context, None , Some ( & mut msg) ) . await ?;
30733068 i64:: MAX
30743069 } ;
@@ -3622,10 +3617,10 @@ pub(crate) async fn create_group_ex(
36223617 {
36233618 let text = if !grpid. is_empty ( ) {
36243619 // Add "Others will only see this group after you sent a first message." message.
3625- stock_str:: new_group_send_first_message ( context) . await
3620+ stock_str:: new_group_send_first_message ( context)
36263621 } else {
36273622 // Add "Messages in this chat use classic email and are not encrypted." message.
3628- stock_str:: chat_unencrypted_explanation ( context) . await
3623+ stock_str:: chat_unencrypted_explanation ( context)
36293624 } ;
36303625 add_info_msg ( context, chat_id, & text) . await ?;
36313626 }
@@ -4197,7 +4192,7 @@ async fn send_member_removal_msg(
41974192
41984193 if contact_id == ContactId :: SELF {
41994194 if chat. typ == Chattype :: InBroadcast {
4200- msg. text = stock_str:: msg_you_left_broadcast ( context) . await ;
4195+ msg. text = stock_str:: msg_you_left_broadcast ( context) ;
42014196 } else {
42024197 msg. text = stock_str:: msg_group_left_local ( context, ContactId :: SELF ) . await ;
42034198 }
@@ -4358,7 +4353,7 @@ async fn rename_ex(
43584353 {
43594354 msg. viewtype = Viewtype :: Text ;
43604355 msg. text = if chat. typ == Chattype :: OutBroadcast {
4361- stock_str:: msg_broadcast_name_changed ( context, & chat. name , & new_name) . await
4356+ stock_str:: msg_broadcast_name_changed ( context, & chat. name , & new_name)
43624357 } else {
43634358 stock_str:: msg_grp_name ( context, & chat. name , & new_name, ContactId :: SELF ) . await
43644359 } ;
@@ -4423,7 +4418,7 @@ pub async fn set_chat_profile_image(
44234418 chat. param . remove ( Param :: ProfileImage ) ;
44244419 msg. param . remove ( Param :: Arg ) ;
44254420 msg. text = if chat. typ == Chattype :: OutBroadcast {
4426- stock_str:: msg_broadcast_img_changed ( context) . await
4421+ stock_str:: msg_broadcast_img_changed ( context)
44274422 } else {
44284423 stock_str:: msg_grp_img_deleted ( context, ContactId :: SELF ) . await
44294424 } ;
@@ -4437,7 +4432,7 @@ pub async fn set_chat_profile_image(
44374432 chat. param . set ( Param :: ProfileImage , image_blob. as_name ( ) ) ;
44384433 msg. param . set ( Param :: Arg , image_blob. as_name ( ) ) ;
44394434 msg. text = if chat. typ == Chattype :: OutBroadcast {
4440- stock_str:: msg_broadcast_img_changed ( context) . await
4435+ stock_str:: msg_broadcast_img_changed ( context)
44414436 } else {
44424437 stock_str:: msg_grp_img_changed ( context, ContactId :: SELF ) . await
44434438 } ;
0 commit comments