ndl / mod_archive2

mod_archive2 is new ejabberd module implementing server-side instant messaging history support specified in XEP-136.
http://www.ndl.kiev.ua/content/modarchive2
27 stars 5 forks source link

Collections & messages ordering doesn't use secondary sort by ID #4

Closed ndl closed 11 years ago

ndl commented 11 years ago

When multiple collections or messages have the same timestamp, current code doesn't ensure the ordering is consistent. This might result in wrong responses to clients when using partial results fetching via RSM. The code should do second-level sorting by collection / message ID to mitigate it.