diff options
author | oliverpool <3864879+oliverpool@users.noreply.github.com> | 2020-08-25 22:04:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-25 21:04:35 +0100 |
commit | 3205b9212d76f61301efae3c554bf9c3fbfc94c8 (patch) | |
tree | 6ec60e814c018c85e88ccf3acba1206b43adc96c /syncapi/consumers | |
parent | 55498c8deb262e564e1b79bf4409eb5593f3034e (diff) |
[readability] use event.StateKeyEquals where relevant and minor for-loop refactoring (#1339)
* use event.StateKeyEquals where relevant
Signed-off-by: Olivier Charvin <git@olivier.pfad.fr>
* use userID
Diffstat (limited to 'syncapi/consumers')
-rw-r--r-- | syncapi/consumers/roomserver.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/syncapi/consumers/roomserver.go b/syncapi/consumers/roomserver.go index 1af58837..bf231d09 100644 --- a/syncapi/consumers/roomserver.go +++ b/syncapi/consumers/roomserver.go @@ -169,9 +169,6 @@ func (s *OutputRoomEventConsumer) onNewRoomEvent( } func (s *OutputRoomEventConsumer) notifyKeyChanges(ev *gomatrixserverlib.HeaderedEvent) { - if ev.Type() != gomatrixserverlib.MRoomMember || ev.StateKey() == nil { - return - } membership, err := ev.Membership() if err != nil { return |