aboutsummaryrefslogtreecommitdiff
path: root/userapi
diff options
context:
space:
mode:
authordevonh <devon.dmytro@gmail.com>2023-07-06 15:15:24 +0000
committerGitHub <noreply@github.com>2023-07-06 15:15:24 +0000
commitd507c5fc9534f2d9e994ce8706f5d51ff192dfdf (patch)
treed357b40f29b89b0b5a4466a3915f1b26ba0cb080 /userapi
parentfea946d9148338f75ca3b4eb7ef224a6ea4d0e5b (diff)
Add pseudoID compatibility to Invites (#3126)
Diffstat (limited to 'userapi')
-rw-r--r--userapi/consumers/roomserver.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/userapi/consumers/roomserver.go b/userapi/consumers/roomserver.go
index 9cb9419d..9a9a407c 100644
--- a/userapi/consumers/roomserver.go
+++ b/userapi/consumers/roomserver.go
@@ -313,10 +313,12 @@ func (s *OutputRoomEventConsumer) processMessage(ctx context.Context, event *rst
sk := event.StateKey()
if sk != nil && *sk != "" {
- skUserID, queryErr := s.rsAPI.QueryUserIDForSender(ctx, *validRoomID, spec.SenderID(*event.StateKey()))
+ skUserID, queryErr := s.rsAPI.QueryUserIDForSender(ctx, *validRoomID, spec.SenderID(*sk))
if queryErr == nil && skUserID != nil {
skString := skUserID.String()
sk = &skString
+ } else {
+ return fmt.Errorf("queryUserIDForSender: userID unknown for %s", *sk)
}
}
cevent := synctypes.ToClientEvent(event, synctypes.FormatAll, sender, sk)