Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mrDoctorWho/vk4xmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Smith <mrdoctorwho@helldev.net>2018-07-26 20:45:04 +0300
committerJohn Smith <mrdoctorwho@helldev.net>2018-07-26 20:45:04 +0300
commita45534d90f2fcf51804d809b6ce3298fcc44a1a8 (patch)
tree712796cde65ae1b3e83ff95a73fe5d0150c8368e
parent368915900b27ae9eeac372bdda42184b0a9b5207 (diff)
Substract one from the message id so probably attachments won't be lost
-rw-r--r--library/longpoll.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/longpoll.py b/library/longpoll.py
index d75c822..ca007ad 100644
--- a/library/longpoll.py
+++ b/library/longpoll.py
@@ -111,7 +111,7 @@ def processPollResult(user, data):
if not out:
if not attachments and not chat:
message = [{"out": 0, "uid": uid, "mid": mid, "date": date, "body": body}]
- utils.runThread(user.sendMessages, (False, message, mid, uid), "sendMessages-%s" % user.source)
+ utils.runThread(user.sendMessages, (False, message, mid - 1, uid), "sendMessages-%s" % user.source)
else:
logger.warning(
"longpoll: incorrect events number while trying to "