From 4a2c23b893b415df1e4ab205cd468e0df543fb15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Philipp=20H=C3=B6rist?= <philipp@hoerist.com>
Date: Mon, 11 Feb 2019 20:32:41 +0100
Subject: [PATCH] Correctly remove bookmark after MUC was destroyed

---
 gajim/common/modules/bookmarks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gajim/common/modules/bookmarks.py b/gajim/common/modules/bookmarks.py
index c1197617f1..46e61d70a7 100644
--- a/gajim/common/modules/bookmarks.py
+++ b/gajim/common/modules/bookmarks.py
@@ -222,7 +222,7 @@ class Bookmarks(BaseModule):
         bookmark = self.get_bookmark_from_jid(jid)
         if bookmark is None:
             return
-        self.bookmark.remove(bookmark)
+        self._bookmarks.remove(bookmark)
         if publish:
             self.store_bookmarks()
 
-- 
GitLab