Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 10752:930f38939f1e
mod_mam: Remove unused variables [luacheck]
Logic using full vs bare JID addressing may return in the future.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 23 Apr 2020 01:05:34 +0200 |
parent | 10751:4db4bd8a7822 |
child | 10773:3e1046b39484 |
comparison
equal
deleted
inserted
replaced
10751:4db4bd8a7822 | 10752:930f38939f1e |
---|---|
263 return stanza; | 263 return stanza; |
264 end | 264 end |
265 | 265 |
266 local function should_store(stanza) --> boolean, reason: string | 266 local function should_store(stanza) --> boolean, reason: string |
267 local st_type = stanza.attr.type or "normal"; | 267 local st_type = stanza.attr.type or "normal"; |
268 local st_to_full = (stanza.attr.to or ""):find("/"); | |
269 if st_type == "error" then | |
270 st_to_full = (stanza.attr.from or ""):find("/"); | |
271 end | |
272 -- FIXME pass direction of stanza and use that along with bare/full JID addressing | 268 -- FIXME pass direction of stanza and use that along with bare/full JID addressing |
273 -- for more accurate MUC / type=groupchat check | 269 -- for more accurate MUC / type=groupchat check |
274 | 270 |
275 if st_type == "headline" then | 271 if st_type == "headline" then |
276 -- Headline messages are ephemeral by definition | 272 -- Headline messages are ephemeral by definition |