feat(server): SmartTextEditorValue.attachments multiregion support (#3513)

This commit is contained in:
Kristaps Fabians Geikins
2024-11-19 13:58:40 +00:00
committed by GitHub
parent 42db2f6b82
commit 9b5873e4f5
5 changed files with 22 additions and 11 deletions
@@ -223,13 +223,14 @@ export = {
*/
text(parent) {
const commentText = parent?.text || ''
return ensureCommentSchema(commentText as SmartTextEditorValueSchema)
return {
...ensureCommentSchema(commentText),
projectId: parent.streamId
}
},
rawText(parent) {
const { doc } = ensureCommentSchema(
(parent.text as SmartTextEditorValueSchema) || ''
)
const { doc } = ensureCommentSchema(parent.text || '')
return documentToBasicString(doc)
},
async hasParent(parent) {