mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
resolved_topic: Add and use predicate is_resolved.
We leave in place a couple of sites where the `startsWith` is entangled with other string manipulation. We'll handle those next.
This commit is contained in:
@@ -178,7 +178,7 @@ export function warn_if_topic_resolved() {
|
||||
|
||||
const sub = stream_data.get_sub(stream_name);
|
||||
|
||||
if (sub && topic_name.startsWith(resolved_topic.RESOLVED_TOPIC_PREFIX)) {
|
||||
if (sub && resolved_topic.is_resolved(topic_name)) {
|
||||
const error_area = $("#compose_resolved_topic");
|
||||
|
||||
if (error_area.html()) {
|
||||
|
||||
Reference in New Issue
Block a user