Skip to content
Snippets Groups Projects
Forked from Maunium / synapse
Source project has a limited visibility.
  • Erik Johnston's avatar
    79fb64e4
    Fix to-device being dropped in limited sync in SQLite. (#11966) · 79fb64e4
    Erik Johnston authored
    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.
    79fb64e4
    History
    Fix to-device being dropped in limited sync in SQLite. (#11966)
    Erik Johnston authored
    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.