From 5cf4128c491835f3494ffde12c3b15e6d35d3fa3 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 19 Apr 2019 14:41:57 -0500 Subject: [PATCH] Fixed error in disconnected friends algorithm --- changelog.md | 2 ++ src/controller/buffers.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 9428a1a..af0d0e7 100644 --- a/changelog.md +++ b/changelog.md @@ -18,6 +18,8 @@ ### bugfixes * All spelling dictionaries are included by default for the following languages: Russian, English, German, French, italian, Polish, spanish and Turkish. Before, some dictionaries were missing and the spelling checker was failing. +* Fixed an error in the default configuration template used for new sessions in the application. This error was making Socializer to fail when loading any conversation buffer. +* Fixed an error in the algorithm to detect friends disconnecting from VK. This problem was interrupting the connection with the chat server every time it was happening, thus chat server's connection should be more reliable now. ### Changes diff --git a/src/controller/buffers.py b/src/controller/buffers.py index 12db890..0ede6e8 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -1370,8 +1370,8 @@ class peopleBuffer(feedBuffer): if focused_user["id"] == self.session.db[self.name]["items"][i]["id"]: self.tab.list.select_item(i) return - elif user == focused_user and user_index < len(self.tab.list.get_count()): - self.tab.list.select_item(user_index) + elif user == focused_user and person_index < self.tab.list.get_count(): + self.tab.list.select_item(person_index) else: self.tab.list.select_item(self.tab.list.get_count()-1)