unregister bookmark on conversation when bookmark is deleted
This commit is contained in:
parent
fc5143734e
commit
e20842608b
|
@ -122,4 +122,10 @@ public class Bookmark implements ListItem {
|
|||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
public void unregisterConversation() {
|
||||
if (this.mJoinedConversation != null) {
|
||||
this.mJoinedConversation.deregisterWithBookmark();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -278,6 +278,7 @@ public class StartConversation extends XmppActivity {
|
|||
|
||||
@Override
|
||||
public void onClick(DialogInterface dialog, int which) {
|
||||
bookmark.unregisterConversation();
|
||||
Account account = bookmark.getAccount();
|
||||
account.getBookmarks().remove(bookmark);
|
||||
xmppConnectionService.pushBookmarks(account);
|
||||
|
|
Loading…
Reference in a new issue