mirror of https://github.com/zulip/zulip.git
ff44fb6fcf
If we get a topic change, we can change the subject outside the loop, since we are passed in event.orig_subject. Doing it inside the loop was mostly harmless, since after you encountered the first message with the old topic, the condition to change the subject evaluated to false, but it was still technically O(N), and it was kind of confusing. This commit changes behavior in the edge case that you have the compose box open for a changing subject, but you are in a narrow that does not have any of the affected messages. After this commit, the topic in the compose box will still change, which I believe is the correct behavior. (imported from commit 2363e432ebe7ae8e07379324ee0bfb52051428e6) |
||
---|---|---|
analytics | ||
api | ||
assets | ||
bin | ||
bots | ||
confirmation | ||
corporate | ||
humbug | ||
node_modules | ||
puppet | ||
scripts | ||
static | ||
templates | ||
tools | ||
zerver | ||
zilencer | ||
zproject | ||
.gitattributes | ||
.gitignore | ||
LICENSE | ||
manage.py | ||
zulip_tools.py |