From 79c3135b4dd7022b8b9f25cac17d9d51cce67bc9 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 7 Oct 2019 13:49:39 +0200 Subject: [PATCH] properly guard bookmarks2 deletion --- .../eu/siacs/conversations/services/XmppConnectionService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java index aa1f768d8..5eef556e2 100644 --- a/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/main/java/eu/siacs/conversations/services/XmppConnectionService.java @@ -1659,7 +1659,7 @@ public class XmppConnectionService extends Service { public void deleteBookmark(final Account account, final Bookmark bookmark) { account.removeBookmark(bookmark); final XmppConnection connection = account.getXmppConnection(); - if (connection.getFeatures().bookmarksConversion()) { + if (connection.getFeatures().bookmarks2()) { IqPacket request = mIqGenerator.deleteItem(Namespace.BOOKMARKS2, bookmark.getJid().asBareJid().toEscapedString()); sendIqPacket(account, request, (a, response) -> { if (response.getType() == IqPacket.TYPE.ERROR) {