diff options
author | Sam Wedgwood <28223854+swedgwood@users.noreply.github.com> | 2023-08-24 16:43:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 16:43:51 +0100 |
commit | 9b5be6b9c552a221e1a6f67d1e632ffc76591d4c (patch) | |
tree | 43751bca5b9a7b1cce8d9ae9ad04f3822a686403 /roomserver | |
parent | a721294e2b339b45fe84995deb756bfe66804c45 (diff) |
[pseudoIDs] More pseudo ID fixes - Part 2 (#3181)
Fixes include:
- Translating state keys that contain user IDs to their respective room
keys for both querying and sending state events
- **NOTE**: there may be design discussion needed on what should happen
when sender keys cannot be found for users
- A simple fix for kicking guests from rooms properly
- Logic for boundary history visibilities was slightly off (I'm
surprised this only manifested in pseudo ID room versions)
Signed-off-by: `Sam Wedgwood <sam@wedgwood.dev>`
Diffstat (limited to 'roomserver')
-rw-r--r-- | roomserver/internal/input/input_events.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/roomserver/internal/input/input_events.go b/roomserver/internal/input/input_events.go index 88049ddf..bf321662 100644 --- a/roomserver/internal/input/input_events.go +++ b/roomserver/internal/input/input_events.go @@ -933,12 +933,7 @@ func (r *Inputer) kickGuests(ctx context.Context, event gomatrixserverlib.PDU, r return err } - userID, err := spec.NewUserID(stateKey, true) - if err != nil { - return err - } - - signingIdentity, err := r.SigningIdentity(ctx, *validRoomID, *userID) + signingIdentity, err := r.SigningIdentity(ctx, *validRoomID, *memberUserID) if err != nil { return err } |