mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-25 21:21:35 +00:00
Remove redundant check (#1748)
This commit is contained in:
parent
369d3939fd
commit
de5f22a469
@ -107,13 +107,6 @@ func (r *Inputer) updateMembership(
|
|||||||
return updates, nil
|
return updates, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if add == nil {
|
|
||||||
// This can happen when we have rejoined a room and suddenly we have a
|
|
||||||
// divergence between the former state and the new one. We don't want to
|
|
||||||
// act on removals and apparently there are no adds, so stop here.
|
|
||||||
return updates, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
mu, err := updater.MembershipUpdater(targetUserNID, r.isLocalTarget(add))
|
mu, err := updater.MembershipUpdater(targetUserNID, r.isLocalTarget(add))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user