people: Enable user_avatar_url_field_optional in webapp.

In 5200598a31, we introduced a new
client capability that can be used to avoid unreasonable network
bandwidth consumed sending avatar URLs of long term idle users in
organizations with 10,000s members.

This commit enables this feature and adds support for it to the web
client.
This commit is contained in:
Hashir Sarwar
2020-06-24 17:25:17 +05:00
committed by Tim Abbott
parent 138a0cb073
commit 9b8521faee
5 changed files with 33 additions and 7 deletions

View File

@@ -192,6 +192,7 @@ def home_real(request: HttpRequest) -> HttpResponse:
client_capabilities = {
'notification_settings_null': True,
'bulk_message_deletion': True,
'user_avatar_url_field_optional': True,
}
register_ret = do_events_register(user_profile, request.client,