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.

reactions view: Add narrow title.

Kenneth Rodrigues57167b2e2e6a
diff --git a/web/src/narrow_title.ts b/web/src/narrow_title.ts
index dfd2b9014f3..0437d5631ad 100644
--- a/web/src/narrow_title.ts
+++ b/web/src/narrow_title.ts
@@ -1,3 +1,4 @@
+import _ from "lodash";
import assert from "minimalistic-assert";
import * as favicon from "./favicon";
@@ -59,6 +60,13 @@ export function compute_narrow_title(filter?: Filter): string {
return $t({defaultMessage: "Invalid user"});
}
+ if (
+ _.isEqual(filter._sorted_term_types, ["sender", "has-reaction"]) &&
+ filter.operands("sender")[0] === people.my_current_email()
+ ) {
+ return $t({defaultMessage: "Reactions"});
+ }
+
if (filter.has_operator("sender")) {
const user = people.get_by_email(filter.operands("sender")[0]!);
if (user) {