aboutsummaryrefslogtreecommitdiff
path: root/syncapi/consumers
diff options
context:
space:
mode:
authoroliverpool <3864879+oliverpool@users.noreply.github.com>2020-08-25 22:04:35 +0200
committerGitHub <noreply@github.com>2020-08-25 21:04:35 +0100
commit3205b9212d76f61301efae3c554bf9c3fbfc94c8 (patch)
tree6ec60e814c018c85e88ccf3acba1206b43adc96c /syncapi/consumers
parent55498c8deb262e564e1b79bf4409eb5593f3034e (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.go3
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