api(deltachat-rpc-client): add Account.wait_for_reactions_changed()

This commit is contained in:
link2xt
2024-04-07 21:57:00 +00:00
parent 18d98d643b
commit 6721df7d57

View File

@@ -295,6 +295,12 @@ class Account:
if event["kind"] == "SecurejoinJoinerProgress" and event["progress"] == 1000:
break
def wait_for_reactions_changed(self):
while True:
event = self.wait_for_event()
if event.kind == EventType.REACTIONS_CHANGED:
return event
def get_fresh_messages_in_arrival_order(self) -> List[Message]:
"""Return fresh messages list sorted in the order of their arrival, with ascending IDs."""
warn(