Fix block length

This commit is contained in:
Kwaroran
2025-05-18 17:14:35 +09:00
parent 1d5393c184
commit cb28eb37bd

View File

@@ -50,7 +50,7 @@
blockEle.push(null)
}
$effect(() => {
$effect.pre(() => {
if($selectedCharID < 0) return
while(blocks.length-10 < DBState.db.characters[$selectedCharID].chats[DBState.db.characters[$selectedCharID].chatPage].message.length){
blocks = new Uint8Array(blocks.length + 500)