Kim Alvefur · hg.prosody.im


changeset 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
date
parents
95f7291db669
children
d31fa28d9482
topic
files

1 files changed, 3 insertions(+), 0 deletions(-)

↓ Download patch

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

Read the original on hg.prosody.im ↗