euphoria-io / heim

A real-time community platform.
https://euphoria.io
Other
874 stars 47 forks source link

Don't allow replies to deleted messages. #89

Closed ckingdev closed 8 years ago

ckingdev commented 8 years ago

Currently, when a message is deleted, users may be typing a reply to that message. If the timing is right then the user sends the message just after the parent message is deleted. This results in a reply to the deleted message appearing at the top level.

This PR changes getParentPostTime to return an error, resulting in a reply to the deleted message being dropped.