# HG changeset patch # User Kim Alvefur # Date 1612821405 -3600 # Node ID ae85457eca8ea739251f44e6823026790ac8ccf9 # Parent 6e05b25c26697436224fe632d7c01a3e8873bb2a clix.archive: Skip printing body-less messages These are more and more common in archives, e.g. receipts, errors, OMEMO etc. diff -r 6e05b25c2669 -r ae85457eca8e clix/archive.lua --- a/clix/archive.lua Mon Nov 23 23:52:31 2020 +0100 +++ b/clix/archive.lua Mon Feb 08 22:56:45 2021 +0100 @@ -17,6 +17,7 @@ local function print_message(i) -- TODO Roster lookup local m = i.message; + if not m:get_child("body") then return end local a = m.attr; if i.stamp then print(os.date("%Y-%m-%d %H:%M:%S", i.stamp));