Fix regressions from RoomPage refactoring

Fixes 581

BUG: 469427
BUG: 469425
This commit is contained in:
Tobias Fella
2023-05-07 09:36:11 +02:00
parent a12a44b722
commit bfdca9ca9e
5 changed files with 60 additions and 44 deletions

View File

@@ -37,8 +37,8 @@ Kirigami.Page {
applicationWindow().hoverLinkIndicator.text = "";
timelineViewLoader.item.positionViewAtBeginning();
hasScrolledUpBefore = false;
if (!Kirigami.Settings.isMobile) {
chatBox.chatBar.forceActiveFocus();
if (!Kirigami.Settings.isMobile && chatBoxLoader.item) {
chatBoxLoader.item.chatBar.forceActiveFocus();
}
}
@@ -59,6 +59,11 @@ Kirigami.Page {
sourceComponent: TimelineView {
id: timelineView
currentRoom: root.currentRoom
onFocusChatBox: {
if (chatBoxLoader.item) {
chatBoxLoader.item.chatBar.forceActiveFocus()
}
}
}
}