aboutsummaryrefslogtreecommitdiff
path: root/syncapi/internal
diff options
context:
space:
mode:
authorS7evinK <2353100+S7evinK@users.noreply.github.com>2022-02-08 18:13:38 +0100
committerGitHub <noreply@github.com>2022-02-08 18:13:38 +0100
commit2771d93748380aa7dc21adca0ef690348d79f002 (patch)
tree54230605e12fb77c5d9712d23a759a80489d1d17 /syncapi/internal
parent457a07eac5d668a0f04c273e086d321cab7ea640 (diff)
Remove OutputKeyChangeEvent consumer on keyserver (#2160)
* Remove keyserver consumer * Remove keyserver from eduserver * Directly upload device keys without eduserver * Add passing tests
Diffstat (limited to 'syncapi/internal')
-rw-r--r--syncapi/internal/keychange.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/syncapi/internal/keychange.go b/syncapi/internal/keychange.go
index fa1064b7..37a9e2d3 100644
--- a/syncapi/internal/keychange.go
+++ b/syncapi/internal/keychange.go
@@ -282,6 +282,8 @@ func membershipEvents(res *types.Response) (joinUserIDs, leaveUserIDs []string)
if ev.Type == gomatrixserverlib.MRoomMember && ev.StateKey != nil {
if strings.Contains(string(ev.Content), `"join"`) {
joinUserIDs = append(joinUserIDs, *ev.StateKey)
+ } else if strings.Contains(string(ev.Content), `"invite"`) {
+ joinUserIDs = append(joinUserIDs, *ev.StateKey)
} else if strings.Contains(string(ev.Content), `"leave"`) {
leaveUserIDs = append(leaveUserIDs, *ev.StateKey)
} else if strings.Contains(string(ev.Content), `"ban"`) {