-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Editing of sent messages fails. #731
Comments
@toreau THANK YOU for submitting this! We've been trying to hunt this down for a while. All reports so far have not been too helpful, and fingered Meteor compatibility. But your detailed log helped us to find the exact culprit in our own code. In any case, you can either:
OR
@rodrigok - it appears to be a Mongo 2.4 compatibility issue after all, please see: https://github.com/RocketChat/Rocket.Chat/blob/master/server/methods/updateMessage.coffee#L37 This line will update the _id field, which is not allowed in 2.4. If we assign the id to a temp var, then delete _id from the message before $set - it should work. I'm creating a quick PR. Please verify. |
Glad to be of help, but I already run MongoDB 2.4.9. Are you saying that this problem affects all 2.4.x versions? |
…sage fix edit msg with older mongodb - closes #731
Just upgraded Rocket.Chat, and can confirm that the fix works for me as well. 😄 |
Glad to see this was is fixed. We do need to probably still recommend people use 2.6 or 3.0 since these are officially supported. I think instructions were recently updated on the wiki by the last person to encounter this. |
Whenever I try to edit a sent message (i.e. a message written in a room) this error messages pops up in the logs:
The text was updated successfully, but these errors were encountered: