aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-02-10 20:26:51 +0100
committerChristian Schneppe <christian@pix-art.de>2018-02-10 20:26:51 +0100
commit41c1665f67b5ee12e864f9bab8daae526cb42f11 (patch)
treee74a6f48732663662fa1fdd2cb5c6d50f22b452d /src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
parent0325594075c2844580cd3d92943aa06f1832e4d4 (diff)
do not cross reference bookmarks and conversations
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
index 6c41187e0..21442bcd1 100644
--- a/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
+++ b/src/main/java/de/pixart/messenger/ui/ConferenceDetailsActivity.java
@@ -396,8 +396,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
if (mConversation == null) {
return true;
}
- Account account = mConversation.getAccount();
- if (account.hasBookmarkFor(mConversation.getJid().toBareJid())) {
+ if (mConversation.getBookmark() != null) {
menuItemSaveBookmark.setVisible(false);
menuItemDeleteBookmark.setVisible(true);
} else {
@@ -568,7 +567,7 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
protected void deleteBookmark() {
Account account = mConversation.getAccount();
Bookmark bookmark = mConversation.getBookmark();
- mConversation.deregisterWithBookmark();
+ bookmark.setConversation(null);
account.getBookmarks().remove(bookmark);
xmppConnectionService.pushBookmarks(account);
updateView();