Fixed error in disconnected friends algorithm

This commit is contained in:
Manuel Cortez 2019-04-19 14:41:57 -05:00
parent 47768acf5c
commit 5cf4128c49
2 changed files with 4 additions and 2 deletions

View File

@ -18,6 +18,8 @@
### bugfixes ### 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. * 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 ### Changes

View File

@ -1370,8 +1370,8 @@ class peopleBuffer(feedBuffer):
if focused_user["id"] == self.session.db[self.name]["items"][i]["id"]: if focused_user["id"] == self.session.db[self.name]["items"][i]["id"]:
self.tab.list.select_item(i) self.tab.list.select_item(i)
return return
elif user == focused_user and user_index < len(self.tab.list.get_count()): elif user == focused_user and person_index < self.tab.list.get_count():
self.tab.list.select_item(user_index) self.tab.list.select_item(person_index)
else: else:
self.tab.list.select_item(self.tab.list.get_count()-1) self.tab.list.select_item(self.tab.list.get_count()-1)