zulip/zerver
Steve Howell 0e106a2488 Add client_gratavar support to GET /messages.
Clients fetching messages can now specify that they are able
to compute their avatar, and if they set client_gratavar to
True in the request (w/our normal encoding scheme), then the
backend will not compute it, and the payload will be smaller.

The fix starts with get_messages_backend.  The flag gets
passed down through these functions:

    * MessageDict.post_process_dicts.
    * MessageDict.set_sender_avatar.

We also fix up the callers for post_process_dicts to explicitly
pass in the client_gravatar path, but for now they all just hard
code the value to False.
2017-10-20 15:49:21 -07:00
..
fixtures tests: Add a test suite for verifying the mobile push notifs content. 2017-10-06 16:47:27 -07:00
lib Add client_gratavar support to GET /messages. 2017-10-20 15:49:21 -07:00
management i18n: Use language code instead of locale. 2017-10-20 11:21:26 -07:00
migrations migrations: Fix deactivated realm corner cases with 0108. 2017-10-20 09:22:35 -07:00
templatetags zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
tests Add client_gratavar support to GET /messages. 2017-10-20 15:49:21 -07:00
tornado notifications: Simplify how triggers are passed around. 2017-10-18 21:42:05 -07:00
views Add client_gratavar support to GET /messages. 2017-10-20 15:49:21 -07:00
webhooks codebase: Remove multiple whitespaces after comma. 2017-10-18 10:04:23 -07:00
worker embedded bots: Add functional state handler. 2017-10-19 13:09:23 -07:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py Remove the rest of print_function. 2017-09-27 18:06:47 -07:00
context_processors.py subdomains: Extract zerver.lib.subdomains library. 2017-10-18 22:27:48 -07:00
decorator.py subdomains: Extract zerver.lib.subdomains library. 2017-10-18 22:27:48 -07:00
filters.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
forms.py subdomains: Improve support for using the root domain. 2017-10-18 23:38:55 -07:00
logging_handlers.py docs: Add more comprehensive documentation on error reporting. 2017-09-27 19:47:08 -07:00
middleware.py subdomains: Extract zerver.lib.subdomains library. 2017-10-18 22:27:48 -07:00
models.py subdomains: Avoid exception when creating realm on root domain. 2017-10-18 23:51:58 -07:00
signals.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00
static_header.txt
storage.py zerver: Remove the rest of absolute_import. 2017-09-27 10:02:39 -07:00