mirror of
https://github.com/zulip/zulip.git
synced 2025-11-21 23:19:10 +00:00
Previously when enforcing the check to do not allow editing topics after a certain time, we were checking whether 'content is None' and considering it as that if content is None then there must be topic edit. But after adding support for moving messages between streams it can be the case that we are neither changing topic nor content and just moving streams, and the original code raises error if this is done after the time limit of editing topics, which is wrong. This commit fixes this by actually checking 'topic_name is not None'.
273 KiB
273 KiB