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.

narrow_banner: Refactor recipient_user in direct message.

adnan-td120cfa8987ec
diff --git a/web/src/narrow_banner.ts b/web/src/narrow_banner.ts
index 5c34e7a2443..3ff5c12b0bf 100644
--- a/web/src/narrow_banner.ts
+++ b/web/src/narrow_banner.ts
@@ -332,8 +332,9 @@ export function pick_empty_narrow_banner(): NarrowBannerData {
};
}
if (!first_operand.includes(",")) {
+ const recipient_user = people.get_by_user_id(user_ids[0]);
// You have no direct messages with this person
- if (people.is_current_user(first_operand)) {
+ if (people.is_current_user(recipient_user.email)) {
return {
title: $t({
defaultMessage: