Mercurial > prosody-modules
comparison mod_mam_muc/mod_mam_muc.lua @ 1532:71d85bc0dea8
mod_mam_muc: Fix for muc history query
| author | Stuart Carnie <stuart.carnie@gmail.com> |
|---|---|
| date | Mon, 20 Oct 2014 16:15:24 -0700 |
| parents | 67c80abe742e |
| children | 915bdcb35e79 |
comparison
equal
deleted
inserted
replaced
| 1531:7d86fc477993 | 1532:71d85bc0dea8 |
|---|---|
| 218 end | 218 end |
| 219 | 219 |
| 220 -- Load all the data! | 220 -- Load all the data! |
| 221 local data, err = archive:find(jid_split(self.jid), { | 221 local data, err = archive:find(jid_split(self.jid), { |
| 222 limit = m_min(maxstanzas or 20, max_history_length); | 222 limit = m_min(maxstanzas or 20, max_history_length); |
| 223 after = since; | 223 start = since; |
| 224 reverse = true; | 224 reverse = true; |
| 225 with = "message<groupchat"; | 225 with = "message<groupchat"; |
| 226 }); | 226 }); |
| 227 | 227 |
| 228 if not data then | 228 if not data then |
