diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-01 16:03:37 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-01 16:03:37 +0200 |
commit | f5870a4c795d56a3168b68e39071a0dfa6c1704d (patch) | |
tree | 0c1b14b1e63b17e63d50102cc47286be2d5f66fe /plugins/muc/history.lib.lua | |
parent | 31809432304bae1e1868a2872257d73e6d071123 (diff) | |
download | prosody-f5870a4c795d56a3168b68e39071a0dfa6c1704d.tar.gz prosody-f5870a4c795d56a3168b68e39071a0dfa6c1704d.zip |
MUC: Include original stanza in send history event
Diffstat (limited to 'plugins/muc/history.lib.lua')
-rw-r--r-- | plugins/muc/history.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/history.lib.lua b/plugins/muc/history.lib.lua index 487aebc6..e467ae32 100644 --- a/plugins/muc/history.lib.lua +++ b/plugins/muc/history.lib.lua @@ -120,6 +120,7 @@ local function send_history(room, stanza) local maxchars, maxstanzas, since = parse_history(stanza); local event = { room = room; + stanza = stanza; to = stanza.attr.from; -- `to` is required to calculate the character count for `maxchars` maxchars = maxchars, maxstanzas = maxstanzas, since = since; next_stanza = function() end; -- events should define this iterator |