mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
api(deltachat-rpc-client): add Account.wait_for_reactions_changed()
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user