Mercurial > prosody-hg
diff plugins/mod_mam/mod_mam.lua @ 10021:4715c5d1eb69
mod_mam: Propagate item-not-found to client (fixes #1325)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 05 May 2019 07:16:05 +0200 |
| parents | 8747ccf0008c |
| children | 98ef41a60fc3 |
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua Sat Mar 23 00:51:10 2019 +0100 +++ b/plugins/mod_mam/mod_mam.lua Sun May 05 07:16:05 2019 +0200 @@ -142,7 +142,11 @@ }); if not data then - origin.send(st.error_reply(stanza, "cancel", "internal-server-error", err)); + if err == "item-not-found" then + origin.send(st.error_reply(stanza, "modify", "item-not-found")); + else + origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); + end return true; end local total = tonumber(err);
