# HG changeset patch # User Matthew Wild # Date 1662236407 -3600 # Node ID 268b1a9162a9b8d51cabc8075c5eeec62347e0bd # Parent 27a4a7e64831bfd0464ed71244f95e4cd4a596f0 mod_smacks: Add type field to results so actions can be later distinguished diff -r 27a4a7e64831 -r 268b1a9162a9 plugins/mod_smacks.lua --- a/plugins/mod_smacks.lua Sat Sep 03 21:19:00 2022 +0100 +++ b/plugins/mod_smacks.lua Sat Sep 03 21:20:07 2022 +0100 @@ -329,6 +329,7 @@ end return { + type = "enabled"; id = resume_token; resume_max = resume_token and tostring(resume_timeout) or nil; session = session; @@ -337,7 +338,6 @@ track_session(session, resume_token); wrap_session(session, false); - end; }; end @@ -613,6 +613,7 @@ sessionmanager.update_session(original_session, session); return { + type = "resumed"; session = original_session; id = id; -- Return function to complete the resumption and resync unacked stanzas