@@ -280,7 +280,7 @@ def track_idleness_and_update_status() -> None:
280
280
281
281
urwid .connect_signal (self .msg_write_box , "change" , on_type_send_status )
282
282
283
- def update_recipients (self , write_box : ReadlineEdit ) -> None :
283
+ def update_recipients_from_emails_in_widget (self , write_box : ReadlineEdit ) -> None :
284
284
self .recipient_emails = re .findall (REGEX_RECIPIENT_EMAIL , write_box .edit_text )
285
285
self ._set_regular_and_typing_recipient_user_ids (
286
286
[self .model .user_dict [email ]["user_id" ] for email in self .recipient_emails ]
@@ -776,7 +776,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
776
776
)
777
777
if not all_valid :
778
778
return key
779
- self .update_recipients (self .to_write_box )
779
+ self .update_recipients_from_emails_in_widget (self .to_write_box )
780
780
if self .recipient_user_ids :
781
781
success = self .model .send_private_message (
782
782
recipients = self .recipient_user_ids ,
@@ -830,7 +830,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
830
830
)
831
831
if not all_valid :
832
832
return key
833
- self .update_recipients (self .to_write_box )
833
+ self .update_recipients_from_emails_in_widget (self .to_write_box )
834
834
this_draft : Composition = PrivateComposition (
835
835
type = "private" ,
836
836
to = self .recipient_user_ids ,
@@ -905,7 +905,7 @@ def keypress(self, size: urwid_Size, key: str) -> Optional[str]:
905
905
# We extract recipients' user_ids and emails only once we know
906
906
# that all the recipients are valid, to avoid including any
907
907
# invalid ones.
908
- self .update_recipients (self .to_write_box )
908
+ self .update_recipients_from_emails_in_widget (self .to_write_box )
909
909
910
910
if not self .msg_body_edit_enabled :
911
911
return key
0 commit comments