Adjust checkMemberInRoom

This commit is contained in:
Neil Alexander 2021-05-25 11:15:28 +01:00
parent 3f84cd6cd0
commit 64ef4ed7b5
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -383,8 +383,8 @@ func checkMemberInRoom(ctx context.Context, rsAPI api.RoomserverInternalAPI, use
}, &membershipRes) }, &membershipRes)
if err != nil { if err != nil {
util.GetLogger(ctx).WithError(err).Error("QueryCurrentState: could not query membership for user") util.GetLogger(ctx).WithError(err).Error("QueryCurrentState: could not query membership for user")
e := jsonerror.InternalServerError() //e := jsonerror.InternalServerError()
return &e //return &e
} }
ev := membershipRes.StateEvents[tuple] ev := membershipRes.StateEvents[tuple]
if ev == nil { if ev == nil {