diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-09-03 21:20:07 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-09-03 21:20:07 +0100 |
commit | a061b11f327222d20f4ab85e874805da261f49f8 (patch) | |
tree | 51063c00e6ed2499867db1b1f805215eb0d26653 | |
parent | 5eef82fdcfe3163b1d23b04058dc41b7848b7976 (diff) | |
download | prosody-a061b11f327222d20f4ab85e874805da261f49f8.tar.gz prosody-a061b11f327222d20f4ab85e874805da261f49f8.zip |
mod_smacks: Add type field to results so actions can be later distinguished
-rw-r--r-- | plugins/mod_smacks.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index 6f257ba5..7a07a9da 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -329,6 +329,7 @@ function do_enable(session, stanza) end return { + type = "enabled"; id = resume_token; resume_max = resume_token and tostring(resume_timeout) or nil; session = session; @@ -337,7 +338,6 @@ function do_enable(session, stanza) track_session(session, resume_token); wrap_session(session, false); - end; }; end @@ -613,6 +613,7 @@ function do_resume(session, stanza) sessionmanager.update_session(original_session, session); return { + type = "resumed"; session = original_session; id = id; -- Return function to complete the resumption and resync unacked stanzas |