aboutsummaryrefslogtreecommitdiff
path: root/appservice
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-03-16 17:29:52 +0000
committerGitHub <noreply@github.com>2020-03-16 17:29:52 +0000
commitacb505b71751f637531ba9113d4b4daae589bcbc (patch)
tree06bf9ff06794d9f04bbc637e2feac69c1500d2ee /appservice
parent452f393dd7de5203c5cd3ebe5697af6ea0f4b009 (diff)
Implement gomatrixserverlib.HeaderedEvent in roomserver query API (#912)
* Implement gomatrixserverlib.HeaderedEvent, which should allow us to store room version headers along with the event across API boundaries and consumers/producers, and intercept unmarshalling to get the event structure right * Add federationsender to previous
Diffstat (limited to 'appservice')
-rw-r--r--appservice/consumers/roomserver.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/appservice/consumers/roomserver.go b/appservice/consumers/roomserver.go
index 6d3ea808..04eb3d99 100644
--- a/appservice/consumers/roomserver.go
+++ b/appservice/consumers/roomserver.go
@@ -143,7 +143,9 @@ func (s *OutputRoomEventConsumer) lookupMissingStateEvents(
return nil, err
}
- result = append(result, eventResp.Events...)
+ for _, headeredEvent := range eventResp.Events {
+ result = append(result, headeredEvent.Event)
+ }
return result, nil
}