Add comments

This commit is contained in:
Neil Alexander 2021-03-03 16:09:54 +00:00
parent 09bbedd7db
commit d37f1601e9
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -242,6 +242,9 @@ func (r *Queryer) QueryMembershipsForRoom(
return err
}
// If no sender is specified then we will just return the entire
// set of memberships for the room, regardless of whether a specific
// user is allowed to see them or not.
if request.Sender == "" {
var events []types.Event
var eventNIDs []types.EventNID