take pep config node max into account for bookmarks2

(cherry picked from commit 7be8a0e24410b86835e6746b157a054336ffc223)
This commit is contained in:
Daniel Gultsch 2024-12-14 16:34:35 +01:00 committed by Arne
parent 75e24ce8e2
commit 845ead0b54

View file

@ -3206,6 +3206,7 @@ public class XmppConnection implements Runnable {
public boolean bookmarks2() {
return pepPublishOptions()
&& pepConfigNodeMax()
&& hasDiscoFeature(account.getJid().asBareJid(), Namespace.BOOKMARKS2_COMPAT);
}