mirror of
https://github.com/element-hq/synapse.git
synced 2026-04-27 04:15:30 +00:00
79fb64e417
If ther are more than 100 to-device messages pending for a device `/sync` will only return the first 100, however the next batch token was incorrectly calculated and so all other pending messages would be dropped. This is due to `txn.rowcount` only returning the number of rows that *changed*, rather than the number *selected* in SQLite.