aboutsummaryrefslogtreecommitdiff
path: root/appservice
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-03-17 11:01:25 +0000
committerGitHub <noreply@github.com>2020-03-17 11:01:25 +0000
commitaebf347a79102597a359dcd59bb45593c8352780 (patch)
treed331c90109878611c0954276dc7a521415c43b9c /appservice
parent9f74a8798e26d9482f1964ff79a28acfe61d6dd1 (diff)
Implement gomatrixserverlib.HeaderedEvent in roomserver Kafka output (#914)
* Use Event.Headered * Use HeaderedEvent in roomserver kafka output * Fix syncserver-integration-tests * Update producers to roomserver inputs * Update gomatrixserverlib * Update gomatrixserverlib * Update gomatrixserverlib * Update gomatrixserverlib * Update gomatrixserverlib * Update gomatrixserverlib
Diffstat (limited to 'appservice')
-rw-r--r--appservice/consumers/roomserver.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/appservice/consumers/roomserver.go b/appservice/consumers/roomserver.go
index 04eb3d99..3e47dee5 100644
--- a/appservice/consumers/roomserver.go
+++ b/appservice/consumers/roomserver.go
@@ -101,11 +101,11 @@ func (s *OutputRoomEventConsumer) onMessage(msg *sarama.ConsumerMessage) error {
"type": ev.Type(),
}).Info("appservice received an event from roomserver")
- missingEvents, err := s.lookupMissingStateEvents(output.NewRoomEvent.AddsStateEventIDs, ev)
+ missingEvents, err := s.lookupMissingStateEvents(output.NewRoomEvent.AddsStateEventIDs, ev.Event)
if err != nil {
return err
}
- events := append(missingEvents, ev)
+ events := append(missingEvents, ev.Event)
// Send event to any relevant application services
return s.filterRoomserverEvents(context.TODO(), events)