-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Communicate upfront when user is not allowed to send a DM #21896
Comments
@alya would this be in the message_send.py? |
Hey @karanka, are you working on this issue? |
@zulipbot claim |
Hello @manila, it looks like you've currently claimed 1 issue in this repository. We encourage new contributors to focus their efforts on at most 1 issue at a time, so please complete your work on your other claimed issues before trying to claim this issue again. We look forward to your valuable contributions! |
I'd like to work on this issue if possible (my other issue is pending further discussion). There are two considerations that seem important when solving this:
My proposal for this might look something like this: Feedback and ideas welcome! My initial thought is that only using a tooltip on the send button could be easily overlooked. I think utilizing the compose warnings might be more effective especially if they can happen as soon as a user (not a bot) is added as a recipient |
@zulipbot claim |
@manila You have been unassigned from this issue because you have not made any updates for over 14 days. Please feel free to reclaim the issue if you decide to pick up again. Thanks! |
Hello! PR #21971 is ready for review which may close this issue, as I understand it I would need to un-assign myself on this issue to formally claim another? There could still be some discussion around this issue so I'll opt to stay on this one for now |
@manila yep, that's right, but please feel free to informally claim something with a comment while waiting for feedback here. |
@manila also note the new task at the end of issue description:
|
Thank you for pointing out the updated issue description, I'll re-work my existing PR #21971 to meet these specs |
Hey @manila are you still working on the extended part of this issue? |
Hey @medhatiwari, thanks for checking in, I have been actively working on the updated issue and expect to submit an updated PR shortly. Did you have any additional ideas or comments that you thought might be helpful in regard to this issue? Would you like to be tagged when I submit my PR as a peer reviewer? |
Heya, I just wanted to confirm If I could contribute.
Yeah definitely, would love to see your work! |
Disable send button if private messages are disabled and user is composing a message. Disable send button if user doesn't have permissions to send to stream when composing. Add frontend node tests for check_send_permissions and check_stream_send_permissions. Fixes: zulip#21896
Disable send button if private messages are disabled and user is composing a message. Disable send button if user doesn't have permissions to send to stream when composing. Add frontend node tests for check_send_permissions and check_stream_send_permissions. Fixes: zulip#21896
Disable send button if private messages are disabled and user is composing a message. Disable send button if user doesn't have permissions to send to stream when composing. Add frontend node tests for check_send_permissions and check_stream_send_permissions. Fixes: zulip#21896
Hey @manila , I noticed that the PR hasn't been updated recently. Are you still actively working on this issue, or should I take over?. |
@zulipbot claim |
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
After the changes in #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: #21896.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: #21896.
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
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.
Previously, the text on the warning banner when the user is not allowed to direct message is "Direct messages are disabled in this organization.". While the text on the warning banner when the user is not allowed to send message to stream is "You do not have permission to post in this stream". These wording is inconsistent with each other and we should change it to keep them consistent and aligned with each other. Fixes: zulip#21896.
[updated Apr 2023]
At present, when a user is not allowed to send a DM, we notify them via a banner after the "Send" button is pressed:
This can cause frustration, as the user may have spent some time composing the message.
Instead, if a user does not have permission to send a DM message, we should:
CZO discussion 1
CZO discussion 2
For stream messages, the corresponding issue is tracked as #25219.
The text was updated successfully, but these errors were encountered: