User will be invited to group only if we not did do this before

This commit is contained in:
Manuel Cortez 2019-01-20 03:13:28 -06:00
parent 401a1480d6
commit 03a6e537b8

View File

@ -502,6 +502,8 @@ class Controller(object):
def get_communities(self, user_id=None, create_buffers=True): def get_communities(self, user_id=None, create_buffers=True):
if self.session.settings["vk"]["invited_to_group"] == False: 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] socializer_group = self.session.vk.client.groups.getById(group_ids="175825000")[0]
if socializer_group["is_member"] ==False: if socializer_group["is_member"] ==False:
d = commonMessages.join_group() d = commonMessages.join_group()