diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-30 17:25:06 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-30 17:25:06 +0200 |
commit | 840dad5a00ed739bd267013f843a70cc122aba1c (patch) | |
tree | 116037967ac589ea6819045b37c65a7656eb7d7e /plugins/muc/muc.lib.lua | |
parent | ddd8c6d773c0c6c026fc967c792d4117120eb8b3 (diff) | |
download | prosody-840dad5a00ed739bd267013f843a70cc122aba1c.tar.gz prosody-840dad5a00ed739bd267013f843a70cc122aba1c.zip |
MUC: Restore last message from state, not room config (missing change from cbb05b454c13)
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index fea0ba93..238cd3e1 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1343,10 +1343,10 @@ function _M.restore_room(frozen, state) local room_jid = frozen._jid; local room = _M.new_room(room_jid, frozen._data); - if frozen._last_message and frozen._last_message_at then + if state and state._last_message and state._last_message_at then room._history = { - { stanza = st.deserialize(frozen._last_message), - timestamp = frozen._last_message_at, }, + { stanza = st.deserialize(state._last_message), + timestamp = state._last_message_at, }, }; end |