Mercurial > prosody-modules
changeset 3652:d0c2f001735f
mod_map: Include last body text
Body, timestamp and message count allows showing modern conversation
list UI without a full archive sync.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 23 Aug 2019 01:18:24 +0200 (2019-08-22) |
parents | 95f7291db669 |
children | d31fa28d9482 |
files | mod_map/mod_map.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_map/mod_map.lua Fri Aug 23 01:16:58 2019 +0200 +++ b/mod_map/mod_map.lua Fri Aug 23 01:18:24 2019 +0200 @@ -66,6 +66,9 @@ if summary.latest and summary.latest[jid] then reply:text_tag("end", datetime(summary.latest[jid])); end + if summary.body and summary.body[jid] then + reply:text_tag("body", summary.body[jid]); + end reply:up(); end