Return the last txnID, which our events are using

This commit is contained in:
Andrew Morgan 2018-06-13 11:39:29 +01:00
parent 219261e1fd
commit a980881687

View file

@ -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