mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
fix some longer standing nonsense code that sent to misleading MSG_READ events instead of one correct one
This commit is contained in:
@@ -421,7 +421,9 @@ class TestOnlineAccount:
|
|||||||
lp.sec("mark message as seen on ac2, wait for changes on ac1")
|
lp.sec("mark message as seen on ac2, wait for changes on ac1")
|
||||||
ac2.mark_seen_messages([msg_in])
|
ac2.mark_seen_messages([msg_in])
|
||||||
lp.step("1")
|
lp.step("1")
|
||||||
ac1._evlogger.get_matching("DC_EVENT_MSG_READ")
|
ev = ac1._evlogger.get_matching("DC_EVENT_MSG_READ")
|
||||||
|
assert ev[1] >= const.DC_CHAT_ID_LAST_SPECIAL
|
||||||
|
assert ev[2] >= const.DC_MSG_ID_LAST_SPECIAL
|
||||||
lp.step("2")
|
lp.step("2")
|
||||||
assert msg_out.is_out_mdn_received()
|
assert msg_out.is_out_mdn_received()
|
||||||
|
|
||||||
|
|||||||
@@ -723,8 +723,7 @@ pub unsafe fn dc_receive_imf(
|
|||||||
&mut msg_id,
|
&mut msg_id,
|
||||||
) {
|
) {
|
||||||
rr_event_to_send
|
rr_event_to_send
|
||||||
.push((chat_id_0, 0));
|
.push((chat_id_0, msg_id));
|
||||||
rr_event_to_send.push((msg_id, 0));
|
|
||||||
}
|
}
|
||||||
mdn_consumed = (msg_id
|
mdn_consumed = (msg_id
|
||||||
!= 0 as libc::c_uint)
|
!= 0 as libc::c_uint)
|
||||||
|
|||||||
Reference in New Issue
Block a user