Document Server version: 8.2.2
Hey,
I have a use case where I have a plugin that can add comments to the document and also the same can be done on the editor.
When the comments added through editor are modified by the plugin (edited), the editor considers that the edited comment is not of the author and doesn’t allow to edit or resolve (editCommentAuthorOnly : true).
Seems like UserId has to be added to the comment data ( from Asc.plugin.info.userId) which resolves the issue.
But there is an issue if multiple editors are in the session
ex:- User1 and User2 are co-editing
- User1 adds a comment from editor.
- User2 replies to the comment from plugin.
User1 can’t edit or resolve their comment, because User2 has added a reply with UserId field set, but for the parent comment UserId won’t be set.
The comment interaction from the plugin is done using the window.Asc.plugin.executeMethod("ChangeComment",[comment.Id, comment.Data])
method where the Data will have all the replies to a comment.
Due to this comment authors are mismatched in the editor and can’t take further action.
Any help here is appreciated
Thanks