mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 09:26:29 +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:
|
if event["kind"] == "SecurejoinJoinerProgress" and event["progress"] == 1000:
|
||||||
break
|
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]:
|
def get_fresh_messages_in_arrival_order(self) -> List[Message]:
|
||||||
"""Return fresh messages list sorted in the order of their arrival, with ascending IDs."""
|
"""Return fresh messages list sorted in the order of their arrival, with ascending IDs."""
|
||||||
warn(
|
warn(
|
||||||
|
|||||||
Reference in New Issue
Block a user