fix chatbox
This commit is contained in:
parent
178a329e45
commit
fe7d367289
|
|
@ -3,6 +3,7 @@
|
|||
import { RoomSnapshot, TLSocketRoom } from '@tldraw/sync-core'
|
||||
import {
|
||||
TLRecord,
|
||||
TLShape,
|
||||
createTLSchema,
|
||||
// defaultBindingSchemas,
|
||||
defaultShapeSchemas,
|
||||
|
|
@ -102,7 +103,11 @@ export class TldrawDurableObject {
|
|||
: undefined
|
||||
if (initialSnapshot) {
|
||||
initialSnapshot?.documents.slice(0, 10).forEach(record => {
|
||||
console.log("record", record)
|
||||
const shape = record.state as TLShape
|
||||
if (shape.type === "chatBox") {
|
||||
console.log("FOUND CHATBOX")
|
||||
console.log("record", record)
|
||||
}
|
||||
})
|
||||
}
|
||||
// create a new TLSocketRoom. This handles all the sync protocol & websocket connections.
|
||||
|
|
|
|||
Loading…
Reference in New Issue