diff options
author | John Smith <mrdoctorwho@helldev.net> | 2020-06-02 17:52:32 +0300 |
---|---|---|
committer | John Smith <mrdoctorwho@helldev.net> | 2020-06-02 17:52:32 +0300 |
commit | d07c9705bd77af2f0f2a09579babf1ec09648550 (patch) | |
tree | e71e197b9ba6c4cc01027a61089188f599493ad1 /library | |
parent | 5bca416acd57e94af1ec1cb87d8ab40f4f68e0f2 (diff) |
Skip messages which id is smaller than the last
Diffstat (limited to 'library')
-rw-r--r-- | library/longpoll.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/longpoll.py b/library/longpoll.py index c8db9f0..cd47df5 100644 --- a/library/longpoll.py +++ b/library/longpoll.py @@ -117,7 +117,7 @@ def processPollResult(user, data): if not out: if not attachments and not chat: message = [{"out": 0, "user_id": uid, "id": mid, "date": date, "body": body}] - utils.runThread(user.sendMessages, (False, message, mid - 1, uid), "sendMessages-%s" % user.source) + utils.runThread(user.sendMessages, (False, message, mid, uid), "sendMessages-%s" % user.source) elif typ == TYPE_MSG_READ_OUT: uid, mid = evt |