aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 19:03:47 +0200
committerChristian Schneppe <christian.schneppe@pix-art.de>2019-10-26 19:03:47 +0200
commite5cb9b1e17c6b25e937b2666fe2113fbdefffd89 (patch)
tree7272204d9225eaa859cf7006c7330f37b25db245 /src/main/java/de/pixart/messenger
parent5ac2a42d13bf062eb00fee0b1bded8e9074dc5e1 (diff)
properly guard bookmarks2 deletion
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
index 91cb4231b..9edb147e7 100644
--- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
+++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java
@@ -1898,7 +1898,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) {