Mercurial > prosody-modules
comparison mod_mam/mod_mam.lua @ 3694:e45a3d04367b
mod_mam: Add flag to session when it performs a MAM query
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 03 Oct 2019 16:39:53 +0100 |
| parents | 0d2d4d5bb5f5 |
| children |
comparison
equal
deleted
inserted
replaced
| 3693:0fb12a4b6106 | 3694:e45a3d04367b |
|---|---|
| 118 local origin, stanza = event.origin, event.stanza; | 118 local origin, stanza = event.origin, event.stanza; |
| 119 local xmlns_mam = stanza.tags[1].attr.xmlns; | 119 local xmlns_mam = stanza.tags[1].attr.xmlns; |
| 120 local query = stanza.tags[1]; | 120 local query = stanza.tags[1]; |
| 121 local qid = query.attr.queryid; | 121 local qid = query.attr.queryid; |
| 122 | 122 |
| 123 origin.mam_requested = true; | |
| 124 | |
| 123 schedule_cleanup(origin.username); | 125 schedule_cleanup(origin.username); |
| 124 | 126 |
| 125 -- Search query parameters | 127 -- Search query parameters |
| 126 local qwith, qstart, qend; | 128 local qwith, qstart, qend; |
| 127 local form = query:get_child("x", "jabber:x:data"); | 129 local form = query:get_child("x", "jabber:x:data"); |
