mirror of https://github.com/zulip/zulip.git
Add note to invite notification on historical messages.
(imported from commit ea3da4bd5b3e461b37b1d5af685d96bf5ecdb847)
This commit is contained in:
parent
6f22fb706d
commit
5ab44f6993
|
@ -854,7 +854,8 @@ class SubscriptionAPITest(AuthedTestCase):
|
|||
self.assertEqual(msg.sender_id,
|
||||
self.get_user_profile("humbug+notifications@humbughq.com").id)
|
||||
expected_msg = ("Hi there! We thought you'd like to know that %s just "
|
||||
"subscribed you to the stream '%s'"
|
||||
"subscribed you to the stream '%s'\nYou can see historical "
|
||||
"content on a non-invite-only stream by narrowing to it."
|
||||
% (self.user_profile.full_name, streams[0]))
|
||||
self.assertEqual(msg.content, expected_msg)
|
||||
recipients = get_display_recipient(msg.recipient)
|
||||
|
|
|
@ -1029,6 +1029,7 @@ def add_subscriptions_backend(request, user_profile,
|
|||
msg += "* %s%s\n" % (
|
||||
stream,
|
||||
" (**invite-only**)" if private_streams[stream] else "")
|
||||
msg += "\nYou can see historical content on a non-invite-only stream by narrowing to it."
|
||||
internal_send_message("humbug+notifications@humbughq.com",
|
||||
"private", email, "", msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue