Software /
code /
prosody
Changeset
7416:c33a1d6da016
MUC: Restore last message from state, not room config (missing change from cbb05b454c13)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 30 Apr 2016 17:25:06 +0200 |
parents | 7415:cbb05b454c13 |
children | 7417:4c8ee8175f5e |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Apr 29 17:04:05 2016 +0200 +++ b/plugins/muc/muc.lib.lua Sat Apr 30 17:25:06 2016 +0200 @@ -1343,10 +1343,10 @@ 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