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

Fix DM replies not working #1730

Merged
merged 2 commits into from
Jul 2, 2023
Merged

Fix DM replies not working #1730

merged 2 commits into from
Jul 2, 2023

Conversation

sunaurus
Copy link
Collaborator

@sunaurus sunaurus commented Jul 1, 2023

The PrivateMessageForm decides whether it's being used for editing a DM or replying to a DM based on whether privateMessageView is undefined.

Currently in rc7, replying to private messages is impossible, as privateMessageView is passed in even when replying. Clicking the reply icon opens up an edit form, and saving this edit form generates an error (because you can't edit another person's DM).

This PR fixes the bug by removing privateMessageView from replies.

@jsit jsit enabled auto-merge July 2, 2023 15:46
@jsit
Copy link
Contributor

jsit commented Jul 2, 2023

@sunaurus Thank you so much for this, this was my regression.

@jsit jsit added this to the 0.18.1 milestone Jul 2, 2023
@jsit jsit merged commit 1700476 into LemmyNet:main Jul 2, 2023
@sunaurus sunaurus deleted the dm_fix branch July 2, 2023 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants