RoomManger connection

RoomManger should just get it's connection from Controller, no need to involve QML
This commit is contained in:
James Graham
2024-03-30 19:48:34 +00:00
parent 64b8cd5bcc
commit eaf4663c84
5 changed files with 10 additions and 12 deletions

View File

@@ -50,7 +50,6 @@ Kirigami.ApplicationWindow {
onConnectionChanged: {
CustomEmojiModel.connection = root.connection;
MatrixImageProvider.connection = root.connection;
RoomManager.connection = root.connection;
SpaceHierarchyCache.connection = root.connection;
if (ShareHandler.text && root.connection) {
root.handleShare();
@@ -244,7 +243,6 @@ Kirigami.ApplicationWindow {
Component.onCompleted: {
CustomEmojiModel.connection = root.connection;
MatrixImageProvider.connection = root.connection;
RoomManager.connection = root.connection;
SpaceHierarchyCache.connection = root.connection;
WindowController.setBlur(pageStack, Config.blur && !Config.compactLayout);
if (ShareHandler.text && root.connection) {