Don't use applicationWindow() for loading key verification sessions

This commit is contained in:
Tobias Fella
2024-04-30 23:01:38 +02:00
parent 4dae3c34b4
commit 31a8abe615

View File

@@ -300,7 +300,7 @@ Kirigami.ApplicationWindow {
RoomManager.resolveResource(directChat.id);
}
function onNewKeyVerificationSession(session) {
applicationWindow().pageStack.pushDialogLayer(Qt.createComponent("org.kde.neochat", "KeyVerificationDialog"), {
root.pageStack.pushDialogLayer(Qt.createComponent("org.kde.neochat", "KeyVerificationDialog"), {
session: session
}, {
title: i18nc("@title:window", "Session Verification")