diff 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
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