zulip/zerver
Steve Howell 822c232e37 message flags: Extract create_historical_user_messages.
A user can subscribe to a stream and sometimes (depending
on stream permissions) see messages from the stream
that were sent before they subscribed, and that user
won't have a UserMessage row for that message.

In order to do things like star a message, we need
to create UserMessage records on the fly.

In the past we wisely constrained this logic to the
specific use cases. But I think we can generalize
the logic now.  For example, we are now building a
feature to mark messages as unread, and it motivates
the same need to auto-create UserMessage rows.

So now we handle this in a more generalized fashion.
2022-03-10 13:21:02 -08:00
..
data_import docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
integration_fixtures/nagios tests: Add a test for fixtures for non-webhook integrations. 2021-04-28 08:16:51 -07:00
lib message flags: Extract create_historical_user_messages. 2022-03-10 13:21:02 -08:00
management upgrade-zulip-stage-2: Remove create_large_indexes optimization. 2022-02-23 11:59:45 -08:00
migrations models: Add unique constraint on RealmUserDefault.realm. 2022-03-07 21:43:07 -08:00
openapi api_docs: Refactor of `MessagesBase` schema. 2022-03-10 13:10:14 -08:00
tests message flags: Extract create_historical_user_messages. 2022-03-10 13:21:02 -08:00
tornado docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
views unread: Remove unused client parameter. 2022-03-10 10:04:51 -05:00
webhooks docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
worker invite: Add backend support for "Never expires" option. 2022-02-24 16:32:19 -08:00
__init__.py django: Upgrade Zulip to Django 3.2 LTS. 2021-05-03 08:36:22 -07:00
apps.py caching: Make sender type optional for flush_cache. 2021-07-26 14:48:07 -07:00
context_processors.py home: Simplify and comment terms of service notice implementation. 2022-02-04 15:48:38 -08:00
decorator.py decorator: Enable web-public view for production. 2022-02-16 13:25:53 -08:00
filters.py typing: Fix function signatures. 2021-08-20 05:54:19 -07:00
forms.py python: Replace deprecated jinja2.utils.Markup with markupsafe.Markup. 2022-01-13 14:22:48 -08:00
logging_handlers.py python: Replace universal_newlines with text. 2022-01-23 22:16:01 -08:00
middleware.py docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
models.py models: Add unique constraint on RealmUserDefault.realm. 2022-03-07 21:43:07 -08:00
signals.py signals: Lazily import zerver.actions. 2022-02-24 14:31:24 -08:00