post_process_state: Allow web public guests.

Because the logic already works correctly, we just need to change mypy
types.
This commit is contained in:
Aman Agrawal
2020-09-27 09:45:42 +05:30
committed by Tim Abbott
parent 190f481f49
commit f46f251688

View File

@@ -973,7 +973,7 @@ def do_events_register(user_profile: UserProfile, user_client: Client,
ret['last_event_id'] = -1
return ret
def post_process_state(user_profile: UserProfile, ret: Dict[str, Any],
def post_process_state(user_profile: Optional[UserProfile], ret: Dict[str, Any],
notification_settings_null: bool) -> None:
'''
NOTE: