Move graphql_color_to_enum -> ThreadColor._from_graphql

This commit is contained in:
Mads Marquart
2019-03-07 18:54:38 +01:00
parent d940b64517
commit 279f637c75
4 changed files with 12 additions and 13 deletions

View File

@@ -2577,7 +2577,7 @@ class Client(object):
# Color change
elif delta_type == "change_thread_theme":
new_color = graphql_color_to_enum(delta["untypedData"]["theme_color"])
new_color = ThreadColor._from_graphql(delta["untypedData"]["theme_color"])
thread_id, thread_type = getThreadIdAndThreadType(metadata)
self.onColorChange(
mid=mid,