mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
Use topic_name() in update_message_backend().
This commit is contained in:
@@ -824,7 +824,7 @@ def update_message_backend(request, user_profile,
|
||||
# 3. This is a topic-only edit and you are an admin.
|
||||
if message.sender == user_profile:
|
||||
pass
|
||||
elif (content is None) and ((message.subject == "(no topic)") or
|
||||
elif (content is None) and ((message.topic_name() == "(no topic)") or
|
||||
user_profile.is_realm_admin):
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user