aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index d9e9c48a..6214fa38 100644
--- a/plugins/muc/muc.lib.lua
+++ b/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