chat: make get_msg_cnt() and get_fresh_msg_cnt() work for deaddrop

Also do not count hidden messages in get_msg_cnt().
This commit is contained in:
link2xt
2021-06-13 20:54:30 +03:00
parent ad7c7e90b3
commit 62388514dd
2 changed files with 45 additions and 13 deletions

View File

@@ -983,7 +983,7 @@ class TestOnlineAccount:
chat2 = msg2.chat
assert msg2 in chat2.get_messages()
assert chat2.is_deaddrop()
assert chat2.count_fresh_messages() == 0
assert chat2.count_fresh_messages() == 1
assert msg2.time_received >= msg1.time_sent
lp.sec("create new chat with contact and verify it's proper")