forked from mirror/monocles_chat_clean
properly guard bookmarks2 deletion
This commit is contained in:
parent
491eec0749
commit
79895c4d19
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue