Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

hotkey: Fix reference to supports_collapsing_recipients.

Tim Abbotte68b7c6ddffd
diff --git a/web/src/filter.ts b/web/src/filter.ts
index cc8ab51b7d7..a7b1eebcd41 100644
--- a/web/src/filter.ts
+++ b/web/src/filter.ts
@@ -1154,7 +1154,7 @@ export class Filter {
}
calc_can_mark_messages_read(): boolean {
- // Arguably this should match supports_collapsing_recipients.
+ // Arguably this should match contains_no_partial_conversations.
// We may want to standardize on that in the future. (At
// present, this function does not allow combining valid filters).
if (this.single_term_type_returns_all_messages_of_conversation()) {
diff --git a/web/src/hotkey.js b/web/src/hotkey.js
index 6ba5fb530be..d756e9a93af 100644
--- a/web/src/hotkey.js
+++ b/web/src/hotkey.js
@@ -679,7 +679,7 @@ export function process_enter_key(e) {
// For search views, renarrow to the current message's
// conversation.
const current_filter = narrow_state.filter();
- if (current_filter !== undefined && !current_filter.supports_collapsing_recipients()) {
+ if (current_filter !== undefined && !current_filter.contains_no_partial_conversations()) {
assert(message_lists.current !== undefined);
const message = message_lists.current.selected_message();