comparison mod_map/mod_map.lua @ 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
parents 95f7291db669
children
comparison
equal deleted inserted replaced
3651:95f7291db669 3652:d0c2f001735f
64 reply:text_tag("start", datetime(summary.earliest[jid])); 64 reply:text_tag("start", datetime(summary.earliest[jid]));
65 end 65 end
66 if summary.latest and summary.latest[jid] then 66 if summary.latest and summary.latest[jid] then
67 reply:text_tag("end", datetime(summary.latest[jid])); 67 reply:text_tag("end", datetime(summary.latest[jid]));
68 end 68 end
69 if summary.body and summary.body[jid] then
70 reply:text_tag("body", summary.body[jid]);
71 end
69 reply:up(); 72 reply:up();
70 end 73 end
71 74
72 module:send(reply); 75 module:send(reply);
73 return true; 76 return true;