aboutsummaryrefslogtreecommitdiff
path: root/roomserver
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2021-02-04 11:12:52 +0000
committerGitHub <noreply@github.com>2021-02-04 11:12:52 +0000
commitde5f22a46960308b3fe8efe7ca1813460b2c9c09 (patch)
treefb6f4dedb1ff726f004156dab71754438790d4b8 /roomserver
parent369d3939fdf88546dfdaf8c185125c684c55e991 (diff)
Remove redundant check (#1748)
Diffstat (limited to 'roomserver')
-rw-r--r--roomserver/internal/input/input_membership.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/roomserver/internal/input/input_membership.go b/roomserver/internal/input/input_membership.go
index 692d8147..bc646c3c 100644
--- a/roomserver/internal/input/input_membership.go
+++ b/roomserver/internal/input/input_membership.go
@@ -107,13 +107,6 @@ func (r *Inputer) updateMembership(
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))
if err != nil {
return nil, err