# HG changeset patch # User Jonas Schäfer <jonas@wielicki.name> # Date 1641748828 -3600 # Node ID fdf50c4d23a3f8b62957a1999e3c7c4a6f9db88f # Parent 9a8a43d0faed572f1af92df1d27c9b3696339f23 mod_groups_muc_bookmarks: restore bookmark injection on empty store diff -r 9a8a43d0faed -r fdf50c4d23a3 mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua --- 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