zulip/zerver
Jacob Hurwitz 0a76a609ec Fix bugs with handling of the empty narrow.
An empty narrow (ie, the home view) can be represented in code as either
`None` or `[]` but we had incorrect handling that failed to fully
properly deal with either case.

(1) In `get_stream_name_from_narrow`, we failed to deal with `None` by
trying to always iterate over `narrow`.
(2) In several other places, we failed to deal with `[]` by explicitly
checking `if narrow is None` or `if narrow is not None`. Changing these
to truthiness checks should work for both the `None` and `[]` cases.
2017-03-19 11:47:03 -07:00
..
fixtures gogs: Add webhook integration. 2017-03-17 12:22:06 -07:00
lib js dependencies: Change hashchange_encode to hash_util_encode in zerver. 2017-03-18 20:40:34 -07:00
management management commands: Change help text to say realm instead of domain. 2017-03-14 17:17:42 -07:00
migrations Timezone should default to empty string. 2017-03-17 21:57:16 -07:00
templatetags mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
tests tests: Remove imports of deleted message_ids. 2017-03-18 20:40:34 -07:00
tornado casper: Fix issues with server autoreloading on save. 2017-03-17 20:45:07 -07:00
views Fix bugs with handling of the empty narrow. 2017-03-19 11:47:03 -07:00
webhooks gogs: Add webhook integration. 2017-03-17 12:22:06 -07:00
worker missed-emails-sending: Move email sending to separate queue worker. 2017-03-07 20:08:40 -08:00
__init__.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
apps.py caching: Add configuration class for post-migration cache flushing. 2016-10-27 23:26:34 -07:00
context_processors.py Add server version to about page template. 2017-03-09 22:10:54 -08:00
decorator.py capitalization: Fix Only Basic authentication is supported. 2017-03-08 23:40:57 -08:00
exceptions.py Annotate zerver.exceptions, zerver.filters, zerver.logging_handlers. 2016-06-04 22:51:18 -07:00
filters.py mypy: Added Dict, List and Set imports. 2017-03-04 14:33:44 -08:00
forms.py forms.py: Remove unused function get_registration_string(domain). 2017-03-14 17:17:42 -07:00
logging_handlers.py AdminZulipHandler: Don't print extra traceback for logged-out users. 2017-03-07 21:23:10 -08:00
middleware.py jinja2: No need for custom render_to_response. 2017-03-17 13:57:34 -07:00
models.py user-presence: Add client info to aggregated presence status. 2017-03-18 20:36:41 -07:00
static_header.txt Update static_header.txt with new license information. 2016-08-13 00:37:21 -07:00
storage.py docs: Add discussion of VFL to front-end-build-process.md. 2017-03-04 21:14:17 -08:00