comparison mod_groups_muc_bookmarks/mod_groups_muc_bookmarks.lua @ 4862:9a8a43d0faed

mod_groups_muc_bookmarks: fix typo/leftover from refactor The update_bookmark function no longer takes a "current" argument; passing it causes havoc in service:publish (because it gets the room JID instaed of the item as item).
author Jonas Schäfer <jonas@wielicki.name>
date Sun, 09 Jan 2022 18:20:02 +0100
parents 5fadb991003d
children fdf50c4d23a3
comparison
equal deleted inserted replaced
4861:5fadb991003d 4862:9a8a43d0faed
58 module:log("debug", "no existing bookmark found, adding new") 58 module:log("debug", "no existing bookmark found, adding new")
59 found = st.stanza("item", { xmlns = XMLNS_XEP0060; id = room }) 59 found = st.stanza("item", { xmlns = XMLNS_XEP0060; id = room })
60 :tag("conference", { xmlns = XMLNS_BM2; name = name; autojoin = autojoin and "true" or "false"; }) 60 :tag("conference", { xmlns = XMLNS_BM2; name = name; autojoin = autojoin and "true" or "false"; })
61 end 61 end
62 62
63 update_bookmark(jid, pep_service, current, room, found) 63 update_bookmark(jid, pep_service, room, found)
64 end 64 end
65 65
66 local function remove_bookmark(jid, room, autojoin, name) 66 local function remove_bookmark(jid, room, autojoin, name)
67 local pep_service = mod_pep.get_pep_service(jid_split(jid)) 67 local pep_service = mod_pep.get_pep_service(jid_split(jid))
68 68