3.0 Beta 6

This commit is contained in:
2026-04-14 17:51:02 +02:00
parent 931ac91526
commit 0dc1e15e59
17 changed files with 88 additions and 28 deletions

View File

@@ -222,9 +222,14 @@ export class Text {
this.serviceManager.networkServices()[networkId].textChannels()[channelId] = newStore;
const currentStore = this.serviceManager.networkServices()[networkId].textChannels()[channelId]
const history = await currentStore.service.get();
currentStore.messages.set(history);
this.scrollToBottom("instant")
try {
const messagesCache = await currentStore.service.getQuick();
currentStore.messages.set(messagesCache);
} catch (e) {
console.warn(`Cache load failed: ${e}. Skipping cache load...`)
}
const messages = await currentStore.service.get();
currentStore.messages.set(messages);
await currentStore.service.joinWebSocketRoom();
}