mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
inbox: Fix calls to is_complete_for_stream_id.
The call from the inbox code was asking the wrong question -- it wants
to know if we've fetched full topic data to know whether to ask for
it. The new name for the function moved in
7d55ad3c13 helped reveal it.
There also was a mention in a comment that was half-baked; wrote the
comment properly.
This commit is contained in:
@@ -942,7 +942,7 @@ class InboxTopicListWidget extends TopicListWidget {
|
||||
get_min_load_count,
|
||||
});
|
||||
|
||||
if (!stream_topic_history.is_complete_for_stream_id(this.my_stream_id)) {
|
||||
if (!stream_topic_history.has_history_for(this.my_stream_id)) {
|
||||
show_channel_view_loading_indicator();
|
||||
stream_topic_history_util.get_server_history(this.my_stream_id, () => {
|
||||
if (channel_view_topic_widget?.get_stream_id() !== this.my_stream_id) {
|
||||
|
||||
Reference in New Issue
Block a user