From 03a6e537b83084999ae862755225ae9a7388a913 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 20 Jan 2019 03:13:28 -0600 Subject: [PATCH] User will be invited to group only if we not did do this before --- src/controller/mainController.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index aa003a6..71c89f2 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -502,6 +502,8 @@ class Controller(object): def get_communities(self, user_id=None, create_buffers=True): if self.session.settings["vk"]["invited_to_group"] == False: + self.session.settings["vk"]["invited_to_group"] = True + self.session.settings.write() socializer_group = self.session.vk.client.groups.getById(group_ids="175825000")[0] if socializer_group["is_member"] ==False: d = commonMessages.join_group()