MCPcopy Create free account
hub / github.com/chatmail/core / wait_next_messages_changed

Method wait_next_messages_changed

python/src/deltachat/events.py:199–206  ·  view source on GitHub ↗

wait for and return next message-changed message or None if the event contains no msgid

(self)

Source from the content-addressed store, hash-verified

197 return self.account.get_message_by_id(ev.data2)
198
199 def wait_next_messages_changed(self):
200 """wait for and return next message-changed message or None
201 if the event contains no msgid
202 """
203 ev = self.get_matching("DC_EVENT_MSGS_CHANGED")
204 if ev.data2 > 0:
205 return self.account.get_message_by_id(ev.data2)
206 return None
207
208 def wait_next_reactions_changed(self):
209 """wait for and return next reactions-changed message."""

Callers 1

Calls 2

get_matchingMethod · 0.95
get_message_by_idMethod · 0.45

Tested by 1