mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
This is a prefactoring to eventually eliminate the home_unread_messages global variable. More commits to follow. In order to set up process_loaded_for_unread() not to modify global variable to get its job done, we want to pull it out of add_messages(), so that add_messages() doesn't have to pass back state to the 9 different places in the codebase where it's called. There are only 2 places where process_loaded_for_unread() get called after this commit. In order to facilitate pulling up process_loaded_for_unread(), I made it so that the contract for add_messages() was to accept already-hydrated messages. This way I could hydrate the messages before calling process_loaded_for_unread() without have to worry about double-caching them in add_messages. This will slightly improve performance, but it was mostly done for code clarity. (imported from commit ad5aaad5b1f22c31647370f4c9dcb5f89d7d99a7) |
||
|---|---|---|
| .. | ||
| humbug_tools | ||
| inject-messages | ||
| jslint | ||
| print-all | ||
| backup | ||
| build-api-tarball | ||
| check-all | ||
| clean-branches | ||
| clean-repo | ||
| deploy-branch | ||
| django-command-line | ||
| django-template-graph | ||
| do-destroy-rebuild-database | ||
| merge-messages-logs | ||
| msmtprc.example | ||
| munge_postgres_logs.pl | ||
| node | ||
| post-receive | ||
| postgres-init-db | ||
| process-mailchimp-signups-command-line | ||
| process-missedmessage-command-line | ||
| process-user-activity-command-line | ||
| restart-server | ||
| review | ||
| run-dev.py | ||
| send_confirmation_emails_command_line | ||
| test-all | ||
| test-backend | ||
| tornado-command-line | ||
| update-deployment | ||
| update-prod-static | ||