summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
Diffstat (limited to 'poezio')
-rw-r--r--poezio/bookmarks.py2
-rw-r--r--poezio/core/commands.py2
-rw-r--r--poezio/windows/bookmark_forms.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/poezio/bookmarks.py b/poezio/bookmarks.py
index ccda2b93..d842d2dd 100644
--- a/poezio/bookmarks.py
+++ b/poezio/bookmarks.py
@@ -171,7 +171,7 @@ class BookmarkList:
return self.bookmarks[key]
return None
- def __in__(self, key) -> bool:
+ def __contains__(self, key) -> bool:
if isinstance(key, (str, JID)):
for bookmark in self.bookmarks:
if bookmark.jid == key:
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 176d0e73..6fc800ae 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -401,7 +401,7 @@ class CommandCore:
tab.password = password
tab.join()
- if config.get('synchronise_open_rooms'):
+ if config.get('synchronise_open_rooms') and room not in self.core.bookmarks:
method = 'remote' if config.get(
'use_remote_bookmarks') else 'local'
self._add_bookmark('%s/%s' % (room, nick), True, password, method)
diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py
index 28cab8ec..d538e6a2 100644
--- a/poezio/windows/bookmark_forms.py
+++ b/poezio/windows/bookmark_forms.py
@@ -269,7 +269,7 @@ class BookmarksWin(Win):
self.current_horizontal_input].set_color(
theme.COLOR_NORMAL_TEXT)
self.current_horizontal_input += 1
- if self.current_horizontal_input > 3:
+ if self.current_horizontal_input > 4:
self.current_horizontal_input = 0
self.lines[self.current_input][
self.current_horizontal_input].set_color(
@@ -363,7 +363,7 @@ class BookmarksWin(Win):
continue
if i >= self.height + self.scroll_pos:
break
- for j in range(4):
+ for j in range(5):
inp[j].refresh()
if self.lines and self.current_input < self.height - 1: