Set contact ID in event related to contact blocking

This commit is contained in:
Alexander Krotov
2020-09-19 18:19:55 +03:00
committed by link2xt
parent fe1c99c5e8
commit 97b1a1c392
2 changed files with 8 additions and 6 deletions

View File

@@ -1417,6 +1417,8 @@ class TestOnlineAccount:
contact = ac1.create_contact(ac2)
contact.set_blocked()
assert contact.is_blocked()
ev = ac1._evtracker.get_matching("DC_EVENT_CONTACTS_CHANGED")
assert ev.data1 == contact.id
lp.sec("ac2 sends a message to ac1 that does not arrive because it is blocked")
ac2.create_chat(ac1).send_text("This will not arrive!")