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

@@ -156,6 +156,7 @@ export class Dm implements OnInit {
this.route.params.subscribe(async params => {
const chatid = params['chatid'];
this.chatid = chatid;
console.log(`Loading chat ${chatid}...`)
const session = this.serviceManager.currentSession();
const chatData = this.serviceManager.chats().find(c => c.chatid === chatid);
@@ -183,8 +184,14 @@ export class Dm implements OnInit {
this.serviceManager.dmServices()[chatid] = newStore;
const currentStore = this.serviceManager.dmServices()[chatid];
const history = await currentStore.service.get();
currentStore.messages.set(history);
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);
this.scrollToBottom("instant")
await currentStore.service.joinWebSocketRoom();