Work on attachments

This commit is contained in:
N-Pex 2025-06-09 09:44:37 +02:00
parent ec79a33eab
commit 842c87dc96
28 changed files with 2714 additions and 798 deletions

View file

@ -5,6 +5,7 @@ import util, { STATE_EVENT_ROOM_DELETED, STATE_EVENT_ROOM_TYPE, ROOM_TYPE_CHANNE
import User from "../models/user";
import * as LocalStorageCryptoStoreClass from "matrix-js-sdk/lib/crypto/store/localStorage-crypto-store";
import rememberMeMixin from "../components/rememberMeMixin";
import { AttachmentManager } from "../models/attachmentManager";
const LocalStorageCryptoStore = LocalStorageCryptoStoreClass.LocalStorageCryptoStore;
@ -47,6 +48,7 @@ export default {
notificationCount: 0,
legacyCryptoStore: undefined,
tokenRefreshPromise: undefined,
attachmentManager: undefined,
};
},
@ -352,6 +354,9 @@ export default {
}
this.useAuthedMedia = await this.matrixClient.isVersionSupported("v1.11");
// Create the attachment manager
this.attachmentManager = new AttachmentManager(this.matrixClient, this.useAuthedMedia, this.$config.maxSizeAutoDownloads);
// Ready to use! Start by loading rooms.
this.initClient();
return user;