mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-08-03 05:38:31 +00:00
feat: allow overriding the "most recent event" when forcing a state download (#853)
Add option to select which event to set the state at to, for the force-set-room-state admin command. This allows us to work around issues where the latest PDU is one that remote servers don't know about (i.e. failed federation for whatever reason) Closes #852 Reviewed-on: https://forgejo.ellis.link/continuwuation/continuwuity/pulls/853 Reviewed-by: Jade Ellis <jade@ellis.link> Co-authored-by: nex <nex@noreply.forgejo.ellis.link> Co-committed-by: nex <nex@noreply.forgejo.ellis.link>
This commit is contained in:
parent
d6fd30393c
commit
e508b1197f
2 changed files with 26 additions and 14 deletions
|
@ -177,6 +177,9 @@ pub(super) enum DebugCommand {
|
|||
room_id: OwnedRoomId,
|
||||
/// The server we will use to query the room state for
|
||||
server_name: OwnedServerName,
|
||||
/// The event ID of the latest known PDU in the room. Will be found
|
||||
/// automatically if not provided.
|
||||
event_id: Option<OwnedEventId>,
|
||||
},
|
||||
|
||||
/// - Runs a server name through conduwuit's true destination resolution
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue