Skip to content
Snippets Groups Projects
Commit 313f4c8c authored by nkour's avatar nkour
Browse files

fix logic

parent a64709b7
No related branches found
No related tags found
No related merge requests found
......@@ -181,6 +181,8 @@ def convert_human_values_to_db_api_values(self, kind, show):
show_col = constants.SHOW_DND
elif show == 'offline':
show_col = constants.SHOW_OFFLINE
elif show is None:
show_col = None
else: # invisible in GC when someone goes invisible
# it's a RFC violation .... but we should not crash
show_col = 'UNKNOWN'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment