From 3fe6d0def1dc8ce8369198070f5bb1f224d42f53 Mon Sep 17 00:00:00 2001
From: SameepAher <96468766+SameepAher@users.noreply.github.com>
Date: Thu, 26 Jan 2023 23:52:35 +0530
Subject: [PATCH] streams: Use singular in feedback for a single added
subscriber.
The message displayed after successfully adding users to a stream previously
used a plural even if only a single user was added.
---
.../stream_subscription_request_result.hbs | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/static/templates/stream_settings/stream_subscription_request_result.hbs b/static/templates/stream_settings/stream_subscription_request_result.hbs
index 723d1b46fb..db87a29dd1 100644
--- a/static/templates/stream_settings/stream_subscription_request_result.hbs
+++ b/static/templates/stream_settings/stream_subscription_request_result.hbs
@@ -3,10 +3,12 @@
{{/if}}
{{#if subscribed_users}}
+ {{#if subscribed_users.[1]}}
+ {{t "Successfully subscribed users:" }}
+ {{else}}
+ {{t "Successfully subscribed user:" }}
+ {{/if}}
{{#each subscribed_users}}
- {{#if @first}}
- {{t "Successfully subscribed users:" }}
- {{/if}}
{{full_name}}{{#unless @last}},{{else}}.{{/unless}}
{{/each}}