zerver: Add feature for notification at rename of a stream.

Feature of sending notification to the stream using notification bot
is added. user_profile is also passed to do_rename_stream for using
the name of user who renamed the stream in notification.
Notification is sent to the stream using
internal_send_stream_message in do_rename_stream.

Fixes #11034.
This commit is contained in:
sahil839
2019-01-05 03:47:38 -08:00
committed by Tim Abbott
parent 3f0bae8c38
commit 4dcccf32f8
5 changed files with 83 additions and 12 deletions

View File

@@ -24,4 +24,4 @@ class Command(ZulipBaseCommand):
new_name = options['new_name']
stream = get_stream(old_name, realm)
do_rename_stream(stream, new_name)
do_rename_stream(stream, new_name, self.user_profile)