mirror of https://github.com/zulip/zulip.git
822c232e37
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. |
||
---|---|---|
.. | ||
data_import | ||
integration_fixtures/nagios | ||
lib | ||
management | ||
migrations | ||
openapi | ||
tests | ||
tornado | ||
views | ||
webhooks | ||
worker | ||
__init__.py | ||
apps.py | ||
context_processors.py | ||
decorator.py | ||
filters.py | ||
forms.py | ||
logging_handlers.py | ||
middleware.py | ||
models.py | ||
signals.py |