process group creation fail

This commit is contained in:
ingvar1995 2018-05-26 16:27:30 +03:00
parent fa3529f5f2
commit 1c80b4fd7d

View File

@ -22,6 +22,7 @@ class GroupsService(tox_save.ToxSave):
def create_new_gc(self, name, privacy_state): def create_new_gc(self, name, privacy_state):
group_number = self._tox.group_new(privacy_state, name.encode('utf-8')) group_number = self._tox.group_new(privacy_state, name.encode('utf-8'))
if group_number != -1:
self._add_new_group_by_number(group_number) self._add_new_group_by_number(group_number)
def join_gc_by_id(self, chat_id, password): def join_gc_by_id(self, chat_id, password):