message: Show error while resolving/unresolving topic.

We were not showing the error, if any, when resolving and
unresolving the topic using topic popover in left sidebar
or using the banner in compose box. This commit adds code
to show the error in the message feed where we show other
errors like connection error, etc.
This commit is contained in:
Sahil Batra
2023-05-24 17:12:18 +05:30
committed by Tim Abbott
parent 457ff73082
commit 7f4f905ec8
4 changed files with 16 additions and 4 deletions

View File

@@ -523,7 +523,7 @@ export function initialize() {
const topic_name = $target.attr("data-topic-name");
message_edit.with_first_message_id(stream_id, topic_name, (message_id) => {
message_edit.toggle_resolve_topic(message_id, topic_name);
message_edit.toggle_resolve_topic(message_id, topic_name, true);
compose_validate.clear_topic_resolved_warning(true);
});
},