mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
test for DC_EVENT_MSGS_NOTICED
This commit is contained in:
@@ -882,7 +882,13 @@ class TestOnlineAccount:
|
|||||||
lp.sec("mark messages as seen on ac2, wait for changes on ac1")
|
lp.sec("mark messages as seen on ac2, wait for changes on ac1")
|
||||||
ac2.direct_imap.idle_start()
|
ac2.direct_imap.idle_start()
|
||||||
ac1.direct_imap.idle_start()
|
ac1.direct_imap.idle_start()
|
||||||
|
|
||||||
ac2.mark_seen_messages([msg2, msg4])
|
ac2.mark_seen_messages([msg2, msg4])
|
||||||
|
ev = ac2._evtracker.get_matching("DC_EVENT_MSGS_NOTICED")
|
||||||
|
assert msg2.chat.id == msg4.chat.id
|
||||||
|
assert ev.data1 == msg2.chat.id
|
||||||
|
assert ev.data2 == 0
|
||||||
|
|
||||||
ac2.direct_imap.idle_check(terminate=True)
|
ac2.direct_imap.idle_check(terminate=True)
|
||||||
lp.step("1")
|
lp.step("1")
|
||||||
for i in range(2):
|
for i in range(2):
|
||||||
|
|||||||
Reference in New Issue
Block a user