remove old chatbox
This commit is contained in:
parent
c93b3066bd
commit
07556dd53a
|
|
@ -100,9 +100,13 @@ export class TldrawDurableObject {
|
|||
const initialSnapshot = roomFromBucket
|
||||
? ((await roomFromBucket.json()) as RoomSnapshot)
|
||||
: undefined
|
||||
console.log("room data", roomFromBucket)
|
||||
const serializedRoom = JSON.stringify(initialSnapshot, null, 2)
|
||||
console.log("serialized room", serializedRoom)
|
||||
if (initialSnapshot) {
|
||||
for (const record of initialSnapshot?.documents) {
|
||||
if (record.state.typeName === "chatBox") {
|
||||
console.log("chatbox", record)
|
||||
}
|
||||
}
|
||||
}
|
||||
// create a new TLSocketRoom. This handles all the sync protocol & websocket connections.
|
||||
// it's up to us to persist the room state to R2 when needed though.
|
||||
return new TLSocketRoom<TLRecord, void>({
|
||||
|
|
|
|||
Loading…
Reference in New Issue