mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-28 17:23:09 -06:00
Remove comment that is no longer correct
This commit is contained in:
parent
e84db1f624
commit
42035f6df9
|
|
@ -102,8 +102,6 @@ func (r *Leaver) performLeaveRoomByID(
|
|||
return nil, fmt.Errorf("Error getting membership: %w", err)
|
||||
}
|
||||
if membership != gomatrixserverlib.Join && membership != gomatrixserverlib.Invite {
|
||||
// TODO: should be able to handle "invite" in this case too, if
|
||||
// it's a case of kicking or banning or such
|
||||
return nil, fmt.Errorf("User %q is not joined to the room (membership is %q)", req.UserID, membership)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue