changeset 4867 | fdf50c4d23a3 |
parent 4866 | 9a8a43d0faed |
child 5690 | d5ff386dc97f |
--- a/mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua Sun Jan 09 18:20:02 2022 +0100 +++ b/mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua Sun Jan 09 18:20:28 2022 +0100 @@ -17,7 +17,13 @@ local function get_current_bookmarks(jid, service) local ok, items = service:get_items(XMLNS_BM2, jid) - if not ok then return nil, items; end + if not ok then + if items == "item-not-found" then + return {}, nil; + else + return nil, items; + end + end return items or {}; end