message_events: Refresh is-followed narrow on topic visibility update.

This adds live update support for `is-followed` narrow. We need
to render the narrow again instead of just adding the relevant
messages from the updated topic since it not easy to determine
which message we need to add based on the selected message of the
user and which messages to ask from the server.
This commit is contained in:
Aman Agrawal
2024-10-18 19:02:10 +00:00
committed by Tim Abbott
parent 93006ac4cf
commit eab9a3e552
4 changed files with 50 additions and 7 deletions

View File

@@ -1009,7 +1009,10 @@ export function dispatch_normal_event(event) {
break;
case "user_topic":
user_topics_ui.handle_topic_updates(event);
user_topics_ui.handle_topic_updates(
event,
message_events.update_current_view_for_topic_visibility(),
);
break;
}
}