aboutsummaryrefslogtreecommitdiff
path: root/syncapi/sync
diff options
context:
space:
mode:
authorBehouba Manassé <behouba@gmail.com>2019-09-30 19:25:04 +0300
committerAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-09-30 17:25:04 +0100
commit49fd47c86313f036da3a9549e7d14def166f4ea7 (patch)
treec240e98d90c8e91f3b470ff16e45b43e2d005981 /syncapi/sync
parent7b454bdd27932d72dbe8edb0b40cb9d6e1cbf954 (diff)
selectAccountDataByType return ClientEvent pointer instead of slice of ClientEvent (#798)
This pull request is an attempt to fix #773. Signed-off-by: Kouame Behouba Manassé behouba@gmail.com
Diffstat (limited to 'syncapi/sync')
-rw-r--r--syncapi/sync/requestpool.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/syncapi/sync/requestpool.go b/syncapi/sync/requestpool.go
index 6b95f469..94a36900 100644
--- a/syncapi/sync/requestpool.go
+++ b/syncapi/sync/requestpool.go
@@ -196,13 +196,13 @@ func (rp *RequestPool) appendAccountData(
events := []gomatrixserverlib.ClientEvent{}
// Request the missing data from the database
for _, dataType := range dataTypes {
- evs, err := rp.accountDB.GetAccountDataByType(
+ event, err := rp.accountDB.GetAccountDataByType(
req.ctx, localpart, roomID, dataType,
)
if err != nil {
return nil, err
}
- events = append(events, evs...)
+ events = append(events, *event)
}
// Append the data to the response