@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.
@@ -3189,6 +3189,9 @@ class TiptapCollabProvider extends HocuspocusProvider {
3189
3189
  newComment.set('deletedAt', (new Date()).toISOString());
3190
3190
  newComment.set('data', comment.get('data'));
3191
3191
  newComment.set('content', deleteContent ? null : comment.get('content'));
3192
+ if (!thread.get('deletedComments')) {
3193
+ thread.set('deletedComments', new Y__namespace.Array());
3194
+ }
3192
3195
  thread.get('deletedComments').push([newComment]);
3193
3196
  thread.get('comments').delete(commentIndex);
3194
3197
  return thread.toJSON();