MUC: Prevent traceback in case of no history items to serialize (fixes #1083)

remotes/origin/0.11
Kim Alvefur 8 years ago
parent 8aa6920ff5
commit b21efabb68
  1. 2
      plugins/muc/muc.lib.lua

@ -1378,7 +1378,7 @@ function room_mt:freeze(live)
end
end
local history = self._history;
if history then
if history and history[1] ~= nil then
state._last_message = st.preserialize(history[#history].stanza);
state._last_message_at = history[#history].timestamp;
end

Loading…
Cancel
Save