forked from zulip/zulip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose: Allow the user to direct message bots despite of policy.
After the changes in zulip#25572, users were no longer able to start a direct message with bots if the organization disabled direct messages. However, we should allow direct messages to bots regardless of the policy because it's a useful interface for users to interact with various classes of bots. user_ids_string_to_ids_array was also modified to prevent cases where the split function returned an array of [0] rather than [] when dealing with a empty id string of "". Fixes: zulip#21896.
- Loading branch information
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters