From 87db7ddd9859501cf4a660d3310b2edabc89d1e9 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Thu, 10 Jan 2019 13:00:48 -0600 Subject: [PATCH] fixed incorrect parameters in call to messages.markAsRead --- src/controller/mainController.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 6aa979b..5a296cf 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -488,7 +488,7 @@ class Controller(object): def mark_as_read(self): for i in self.buffers: if hasattr(i, "reads") and len(i.reads) != 0: - response = self.session.vk.client.messages.markAsRead(peer_id=i.kwargs["user_id"]) + response = self.session.vk.client.messages.markAsRead(peer_id=i.kwargs["peer_id"]) i.clear_reads() i.reads = [] time.sleep(1)