Skip to content

Edit-message (8/n): Add/use prevContentSha256 param #1496

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

Merged
merged 2 commits into from
May 3, 2025

Conversation

chrisbobbe
Copy link
Collaborator

@chrisbobbe chrisbobbe commented May 2, 2025

No description provided.

@chrisbobbe chrisbobbe added the maintainer review PR ready for review by Zulip maintainers label May 2, 2025
@chrisbobbe chrisbobbe requested a review from PIG208 May 2, 2025 22:53
@chrisbobbe chrisbobbe closed this May 2, 2025
@chrisbobbe chrisbobbe force-pushed the pr-edit-message-8 branch from 4338003 to e5dcfff Compare May 2, 2025 22:57
@chrisbobbe chrisbobbe reopened this May 2, 2025
@chrisbobbe chrisbobbe force-pushed the pr-edit-message-8 branch from e5dcfff to 9cb1334 Compare May 2, 2025 23:08
@chrisbobbe
Copy link
Collaborator Author

Rebased now that #1484 has been merged.

Comment on lines 159 to 161
originalRawContent: 'old content', newContent: 'new content');
checkRequest(message.id,
prevContentSha256: '34a780ad578b997db55b260beb60b501f3e04d30ba1a51fcf43cd8dd1241780d',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Presumably this is the hash of the string "old content"? Probably clearest to say it that way directly. (The computing of the hash can get centralized into this checkRequest helper.)

@chrisbobbe chrisbobbe force-pushed the pr-edit-message-8 branch from 9cb1334 to 6ff20f6 Compare May 2, 2025 23:57
@chrisbobbe
Copy link
Collaborator Author

Thanks! Revision pushed.

@gnprice gnprice merged commit 6ff20f6 into zulip:main May 3, 2025
1 check passed
@gnprice
Copy link
Member

gnprice commented May 3, 2025

Thanks! Looks good; merging.

@chrisbobbe chrisbobbe deleted the pr-edit-message-8 branch May 3, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer review PR ready for review by Zulip maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants