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.

compose-closed-ui: Fix inbox and recent views not updating button.

Lauryn Menard4f163e5ad237
diff --git a/web/src/compose_closed_ui.ts b/web/src/compose_closed_ui.ts
index 0c679d46ebd..029b5add4dc 100644
--- a/web/src/compose_closed_ui.ts
+++ b/web/src/compose_closed_ui.ts
@@ -46,11 +46,13 @@ export function get_recipient_label(
// actual message objects with fake objects containing just a
// couple fields, both those constructed here and potentially
// passed in.
- if (message_lists.current === undefined) {
- return undefined;
- }
if (recipient_information === undefined) {
+ // We check the current message list for information about the
+ // reply recipient for the closed compose box button label.
+ if (message_lists.current === undefined) {
+ return undefined;
+ }
if (message_lists.current.visibly_empty()) {
// For empty narrows where there's a clear reply target,
// i.e. stream+topic or a single direct message conversation,