Changeset

462:51c3da615ff4

archive: Add 'complete' flag
author Matthew Wild <mwild1@gmail.com>
date Thu, 16 Mar 2023 11:47:37 +0000
parents 461:fa5c40e5e079
children 463:98fe3ed54639
files plugins/archive.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/archive.lua	Thu Mar 16 11:46:16 2023 +0000
+++ b/plugins/archive.lua	Thu Mar 16 11:47:37 2023 +0000
@@ -64,6 +64,7 @@
 			end
 			local finished = reply:get_child("fin", xmlns_mam)
 			if finished then
+				results.complete = finished.attr.complete == "true" or finished.attr.complete == "1";
 				local rset = rsm.get(finished);
 				for k,v in pairs(rset or NULL) do results[k]=v; end
 			end