Fixes
This commit is contained in:
parent
a073dd9bc9
commit
1b8b26eafc
13 changed files with 152 additions and 65 deletions
|
|
@ -141,11 +141,14 @@ class Contact(basecontact.BaseContact):
|
|||
return list(messages)
|
||||
|
||||
def mark_as_sent(self, tox_message_id):
|
||||
message = list(filter(lambda m: m.author is not None
|
||||
and m.author.type == MESSAGE_AUTHOR['NOT_SENT']
|
||||
and m.tox_message_id == tox_message_id,
|
||||
self._corr))[0]
|
||||
try:
|
||||
message = list(filter(lambda m: m.author is not None and m.author.type == MESSAGE_AUTHOR['NOT_SENT']
|
||||
and m.tox_message_id == tox_message_id, self._corr))[0]
|
||||
message.mark_as_sent()
|
||||
except Exception as ex:
|
||||
# wrapped C/C++ object of type QLabel has been deleted
|
||||
LOG.error(f"Mark as sent: {ex!s}")
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue