candy-chat / candy

JavaScript-based multi-user chat client for XMPP.
http://candy-chat.github.io/candy
MIT License
1.32k stars 370 forks source link

autojoin joins booomarked rooms that should not be autojoined #503

Open silberzwiebel opened 7 years ago

silberzwiebel commented 7 years ago

Hi,

I've just installed candy via the mod_candy module from prosody. Running prosody 0.10 nightly and Candy 2.2.0. I've set the 'autojoin' flag to true and candy joins all bookmarked rooms, which is fine. However, candy also joins bookmarked rooms that I do not want to autojoin, i.e., it does not respect the autojoin flag from prosody. The corresponding part in the prosody private storage files looks like this:

        [12] = {
            [1] = {
                [1] = "kartoffelsalat";
                ["attr"] = {
                    ["xmlns"] = "storage:bookmarks";
                };
                ["name"] = "nick";
            };
            ["attr"] = {
                ["name"] = "prosody";
                ["jid"] = "prosody@conference.prosody.im";
                ["minimize"] = "1";
                ["autojoin"] = "0";
                ["xmlns"] = "storage:bookmarks";
            };
            ["name"] = "conference";
        };