mirror of
https://github.com/chatmail/core.git
synced 2026-04-23 08:26:30 +03:00
refine handling of accepted contacts in example
This commit is contained in:
@@ -128,3 +128,10 @@ class FFIEventTracker:
|
||||
""" wait for and return next incoming message. """
|
||||
ev = self.get_matching("DC_EVENT_INCOMING_MSG")
|
||||
return self.account.get_message_by_id(ev.data2)
|
||||
|
||||
def wait_next_messages_changed(self):
|
||||
""" wait for and return next message-changed message or None
|
||||
if the event contains no msgid"""
|
||||
ev = self.get_matching("DC_EVENT_MSGS_CHANGED")
|
||||
if ev.data2 > 0:
|
||||
return self.account.get_message_by_id(ev.data2)
|
||||
|
||||
Reference in New Issue
Block a user