@@ -301,7 +301,7 @@ impl ChatId {
301301 let chat = Chat :: load_from_db ( context, chat_id) . await ?;
302302
303303 if chat. is_encrypted ( context) . await ? {
304- chat_id. add_encrypted_msg ( context, timestamp) . await ?;
304+ chat_id. add_e2ee_notice ( context, timestamp) . await ?;
305305 }
306306
307307 info ! (
@@ -462,7 +462,7 @@ impl ChatId {
462462 }
463463
464464 /// Adds message "Messages are end-to-end encrypted".
465- pub ( crate ) async fn add_encrypted_msg ( self , context : & Context , timestamp : i64 ) -> Result < ( ) > {
465+ pub ( crate ) async fn add_e2ee_notice ( self , context : & Context , timestamp : i64 ) -> Result < ( ) > {
466466 let text = stock_str:: messages_e2e_encrypted ( context) . await ;
467467 add_info_msg_with_cmd (
468468 context,
@@ -2421,7 +2421,7 @@ impl ChatIdBlocked {
24212421 && !chat. param . exists ( Param :: Devicetalk )
24222422 && !chat. param . exists ( Param :: Selftalk )
24232423 {
2424- chat_id. add_encrypted_msg ( context, smeared_time) . await ?;
2424+ chat_id. add_e2ee_notice ( context, smeared_time) . await ?;
24252425 }
24262426
24272427 Ok ( Self {
@@ -3448,7 +3448,7 @@ pub(crate) async fn create_group_ex(
34483448
34493449 if !grpid. is_empty ( ) {
34503450 // Add "Messages are end-to-end encrypted." message.
3451- chat_id. add_encrypted_msg ( context, timestamp) . await ?;
3451+ chat_id. add_e2ee_notice ( context, timestamp) . await ?;
34523452 }
34533453
34543454 if !context. get_config_bool ( Config :: Bot ) . await ?
@@ -3529,7 +3529,7 @@ pub(crate) async fn create_out_broadcast_ex(
35293529 Ok ( chat_id)
35303530 } ;
35313531 let chat_id = context. sql . transaction ( trans_fn) . await ?;
3532- chat_id. add_encrypted_msg ( context, timestamp) . await ?;
3532+ chat_id. add_e2ee_notice ( context, timestamp) . await ?;
35333533
35343534 context. emit_msgs_changed_without_ids ( ) ;
35353535 chatlist_events:: emit_chatlist_changed ( context) ;
0 commit comments