Fix room succession not actually working

I broke this in 409b6da160 making it not
possible to join a succeeding room. I decided to keep the old behavior
of not prompting you to join, because:

1. You are intentionally choosing to tap the button.
2. Room successions aren't random, a privileged user in the room is
creating it and there's already some implicit existing trust

(Also the current join confirmation dialog isn't useful enough yet to
make an actual informed decision anyway.)
This commit is contained in:
Joshua Goins
2025-09-29 16:14:22 -04:00
parent 8e83febb24
commit 466cfd971d

View File

@@ -27,7 +27,10 @@ TimelineDelegate {
type: Kirigami.MessageType.Information
actions: Kirigami.Action {
text: i18n("See new room…")
onTriggered: RoomManager.resolveResource(root.room.successorId)
// We want to skip the join confirmation check here,
// Not only because the user is intentionally tapping this button but the room is trusted to be the successor already
onTriggered: RoomManager.resolveResource(root.room.successorId, "join_confirmed")
}
}
}