From e20842608b76f59d56600e88d786c4ae7a01b5c8 Mon Sep 17 00:00:00 2001 From: iNPUTmice Date: Tue, 15 Jul 2014 20:41:10 +0200 Subject: unregister bookmark on conversation when bookmark is deleted --- src/eu/siacs/conversations/entities/Bookmark.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/eu/siacs/conversations/entities/Bookmark.java') diff --git a/src/eu/siacs/conversations/entities/Bookmark.java b/src/eu/siacs/conversations/entities/Bookmark.java index c4e151cb..38c03410 100644 --- a/src/eu/siacs/conversations/entities/Bookmark.java +++ b/src/eu/siacs/conversations/entities/Bookmark.java @@ -122,4 +122,10 @@ public class Bookmark implements ListItem { } return element; } + + public void unregisterConversation() { + if (this.mJoinedConversation != null) { + this.mJoinedConversation.deregisterWithBookmark(); + } + } } -- cgit v1.2.3