Move graphql_to_poll -> Poll._from_graphql

This commit is contained in:
Mads Marquart
2019-03-07 19:52:29 +01:00
parent e51ce99c1a
commit 0578ea2c3c
4 changed files with 10 additions and 12 deletions

View File

@@ -2836,7 +2836,7 @@ class Client(object):
thread_id, thread_type = getThreadIdAndThreadType(metadata)
event_type = delta["untypedData"]["event_type"]
poll_json = json.loads(delta["untypedData"]["question_json"])
poll = graphql_to_poll(poll_json)
poll = Poll._from_graphql(poll_json)
if event_type == "question_creation":
# User created group poll
self.onPollCreated(