zulip/zerver
Aman Agrawal b7e5b7f193 do_update_messages: Delete user_message if guest user loses access.
Fixes #14498.
When a topic is moved to a different stream, the message may no
longer be reachable to guest user, if the user is not subscribed
to the new stream.

We used to send message update event to the client in these cases,
which seems to be confusing both to the client updating the message
and the server sending push_notifications for it.

Now, we delete the UserMessage entry for these messages for the
user and send a delete message event to the client; which makes
both push_notification and the event handling client think that
the message was deleted and hence no confusion in the code is
raised.
2020-06-18 01:00:04 -07:00
..
data_import python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
lib do_update_messages: Delete user_message if guest user loses access. 2020-06-18 01:00:04 -07:00
management i18n: Add regex for nested handlebars i18n. 2020-06-17 17:56:57 -07:00
migrations migrations: Add merged migration following 2.1.5 release. 2020-06-16 23:35:39 -07:00
openapi openapi: Document GET /attachments endpoint. 2020-06-17 18:35:44 -07:00
templatetags python: Convert more percent formatting to Python 3.6 f-strings. 2020-06-14 23:27:22 -07:00
tests do_update_messages: Delete user_message if guest user loses access. 2020-06-18 01:00:04 -07:00
tornado python: Convert percent formatting to .format for translated strings. 2020-06-15 16:24:46 -07:00
views CVE-2020-14215: Fix validation in PreregistrationUser queries. 2020-06-16 23:35:39 -07:00
webhooks CVE-2020-12759: Fix reflected XSS vulnerability in Dropbox webhook. 2020-06-16 22:46:16 -07:00
worker CVE-2020-14215: Fix validation in PreregistrationUser queries. 2020-06-16 23:35:39 -07:00
__init__.py
apps.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
context_processors.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
decorator.py python: Fix misuse of Optional types for optional parameters. 2020-06-13 15:31:27 -07:00
filters.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
forms.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
logging_handlers.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00
middleware.py python: Manually convert more percent-formatting to f-strings. 2020-06-14 23:27:22 -07:00
models.py CVE-2020-14215: Fix validation in PreregistrationUser queries. 2020-06-16 23:35:39 -07:00
signals.py python: Sort imports with isort. 2020-06-11 16:45:32 -07:00