mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 14:53:10 -06:00
todo for authenticating state returned by /peek
This commit is contained in:
parent
f8bb4487df
commit
fff18454b1
|
|
@ -334,6 +334,9 @@ func (r *FederationSenderInternalAPI) performPeekUsingServer(
|
||||||
return fmt.Errorf("respPeek.RoomVersion.EventFormat: %w", err)
|
return fmt.Errorf("respPeek.RoomVersion.EventFormat: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: authenticate the state returned (check its auth events etc)
|
||||||
|
// the equivalent of CheckSendJoinResponse()
|
||||||
|
|
||||||
// If we've got this far, the remote server is peeking.
|
// If we've got this far, the remote server is peeking.
|
||||||
if renewing {
|
if renewing {
|
||||||
if err = r.db.RenewRemotePeek(ctx, serverName, roomID, peekID, respPeek.RenewalInterval); err != nil {
|
if err = r.db.RenewRemotePeek(ctx, serverName, roomID, peekID, respPeek.RenewalInterval); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue