Skip to content

Commit 94f57e7

Browse files
committed
api(deltechat-rpc-client): add Account.wait_for_msgs_noticed_event()
1 parent db1a7f6 commit 94f57e7

File tree

1 file changed

+7
-0
lines changed
  • deltachat-rpc-client/src/deltachat_rpc_client

1 file changed

+7
-0
lines changed

deltachat-rpc-client/src/deltachat_rpc_client/account.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,13 @@ def wait_for_msgs_changed_event(self):
339339
if event.kind == EventType.MSGS_CHANGED:
340340
return event
341341

342+
def wait_for_msgs_noticed_event(self):
343+
"""Wait for messages noticed event and return it."""
344+
while True:
345+
event = self.wait_for_event()
346+
if event.kind == EventType.MSGS_NOTICED:
347+
return event
348+
342349
def wait_for_incoming_msg(self):
343350
"""Wait for incoming message and return it.
344351

0 commit comments

Comments
 (0)