Better initialization pts for new channels

This commit is contained in:
Lonami Exo 2022-05-23 12:20:02 +02:00
parent f50b2f5d61
commit 9dbf3443d0

View File

@ -477,8 +477,8 @@ class MessageBox:
pass
else:
# No previous `pts` known, and because this update has to be "right" (it's the first one) our
# `local_pts` must be one less.
local_pts = pts.pts - 1
# `local_pts` must be the one before the server pts.
local_pts = pts.pts - pts.pts_count
# For example, when we're in a channel, we immediately receive:
# * ReadChannelInbox (pts = X)