@hocuspocus/provider 2.15.0 → 2.15.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3165,6 +3165,9 @@ class TiptapCollabProvider extends HocuspocusProvider {
3165
3165
  newComment.set('deletedAt', (new Date()).toISOString());
3166
3166
  newComment.set('data', comment.get('data'));
3167
3167
  newComment.set('content', deleteContent ? null : comment.get('content'));
3168
+ if (!thread.get('deletedComments')) {
3169
+ thread.set('deletedComments', new Y.Array());
3170
+ }
3168
3171
  thread.get('deletedComments').push([newComment]);
3169
3172
  thread.get('comments').delete(commentIndex);
3170
3173
  return thread.toJSON();