mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Fix comments
This commit is contained in:
parent
9b3ecd5cdd
commit
bbfeccaacf
|
|
@ -97,7 +97,7 @@ func updateMembership(
|
||||||
}
|
}
|
||||||
if old == new && new != "join" {
|
if old == new && new != "join" {
|
||||||
// If the membership is the same then nothing changed and we can return
|
// If the membership is the same then nothing changed and we can return
|
||||||
// immediately.
|
// immediately, unless it's a "join" update (e.g. profile update).
|
||||||
return updates, nil
|
return updates, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -152,7 +152,8 @@ func updateToJoinMembership(
|
||||||
mu types.MembershipUpdater, add *gomatrixserverlib.Event, updates []api.OutputEvent,
|
mu types.MembershipUpdater, add *gomatrixserverlib.Event, updates []api.OutputEvent,
|
||||||
) ([]api.OutputEvent, error) {
|
) ([]api.OutputEvent, error) {
|
||||||
// If the user is already marked as being joined, we call SetToJoin to update
|
// If the user is already marked as being joined, we call SetToJoin to update
|
||||||
// the event ID then we can return immediately. Retired is ignored as
|
// the event ID then we can return immediately. Retired is ignored as there
|
||||||
|
// is no invite event to retire.
|
||||||
if mu.IsJoin() {
|
if mu.IsJoin() {
|
||||||
_, err := mu.SetToJoin(add.Sender(), add.EventID(), true)
|
_, err := mu.SetToJoin(add.Sender(), add.EventID(), true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue