Skip to content
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

bugfix: boxes: Allow message body editing when limit doesn't exist. #1035

Merged
merged 1 commit into from
May 15, 2021

Conversation

prah23
Copy link
Member

@prah23 prah23 commented May 15, 2021

Currently, a configuration of 0 for realm_message_content_edit_limit_seconds
is treated as a complete restriction against message body editing, while
the configuration actually signifies no limit in message body editing.

This PR adds a commit that fixes the bug that doesn't let the users
edit the message body when the configuration sent by the server is 0
for a realm.

Fixes #1034.

@zulipbot zulipbot added size: L [Automatic label added by zulipbot] area: message editing missing feature: user A missing feature for all users, present in another Zulip client labels May 15, 2021
This commit fixes a bug that doesn't let users edit the message body
when the `realm_message_content_edit_limit_seconds` sent by the server
is 0 for a realm. Prior to this commit, this configuration of 0 was
treated as a complete restriction against message body editing, while
the configuration actually signified no limit in message body editing.

Fixes zulip#1034.
@neiljp neiljp merged commit e51c15c into zulip:main May 15, 2021
@neiljp neiljp added this to the Next Release milestone May 15, 2021
@neiljp
Copy link
Collaborator

neiljp commented May 15, 2021

@prah23 Thanks for the quick fix! 👍 I reordered the test parameters to keep the expected value at the end and have just merged 🎉

I checked the server tests and the zero value meaning is indicated there; as per my message in the stream, if there is not API documentation of this special value then I'd suggest we add an issue or PR for that, or discuss on czo.

@prah23
Copy link
Member Author

prah23 commented May 16, 2021

Thanks for merging it, @neiljp! I think an issue/PR would be prompt as well, as the documentation seems missing for this. I've also responded on CZO to discuss further.
I'll link to that here for anyone reading: #zulip-terminal > "Any time" message edits #T1035 (fix #T1034).

@neiljp neiljp added the bug Something isn't working label Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: message editing bug Something isn't working missing feature: user A missing feature for all users, present in another Zulip client size: L [Automatic label added by zulipbot]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't edit messages: "Time limit for editing the message body..."
3 participants