Skip to content

Commit

Permalink
Merge pull request #340 from kapi2289/fix_fetch_thread_list
Browse files Browse the repository at this point in the history
[Fix] `fetchThreadList` fix
  • Loading branch information
madsmtm authored Sep 27, 2018
2 parents 08117e7 + d807648 commit 343f987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fbchat/graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ def graphql_to_group(group):
color=c_info.get('color'),
emoji=c_info.get('emoji'),
admins = set([node.get('id') for node in group.get('thread_admins')]),
approval_mode = bool(group.get('approval_mode')),
approval_requests = set(node["requester"]['id'] for node in group['group_approval_queue']['nodes']),
approval_mode = bool(group.get('approval_mode')) if group.get('approval_mode') is not None else None,
approval_requests = set(node["requester"]['id'] for node in group['group_approval_queue']['nodes']) if group.get('group_approval_queue') else None,
join_link = group['joinable_mode'].get('link'),
photo=group['image'].get('uri'),
name=group.get('name'),
Expand Down

0 comments on commit 343f987

Please sign in to comment.