From a98088168751682cad594c5f4ffc0caff04c538d Mon Sep 17 00:00:00 2001 From: Andrew Morgan Date: Wed, 13 Jun 2018 11:39:29 +0100 Subject: [PATCH] Return the last txnID, which our events are using --- .../dendrite/appservice/storage/appservice_events_table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go b/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go index 72668ab2a..39f55e48a 100644 --- a/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go +++ b/src/github.com/matrix-org/dendrite/appservice/storage/appservice_events_table.go @@ -163,7 +163,7 @@ func retrieveEvents(eventRows *sql.Rows) (events []gomatrixserverlib.Application // If txnID has changed on this event from the previous event, then we've // reached the end of a transaction's events. Return only those events. if lastTxnID > -2 && lastTxnID != txnID { - return + return events, maxID, lastTxnID, nil } lastTxnID = txnID