Skip to content

Commit

Permalink
Check current_contact is not None when send fails
Browse files Browse the repository at this point in the history
  • Loading branch information
exquo committed Mar 1, 2023
1 parent 4a90570 commit 7c7ffec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scli
Original file line number Diff line number Diff line change
Expand Up @@ -2728,6 +2728,9 @@ class ContactsListWidget(ListBoxPlus):
if status != 'send_failed':
return
current_contact = self._chats_data.current_contact
if current_contact is None:
# If contacts' update happens while sending, and current_contact no longer in contacts.
return
envelope_contact_id = get_envelope_contact_id(envelope)
if current_contact.id == envelope_contact_id:
return
Expand Down

0 comments on commit 7c7ffec

Please sign in to comment.