...
 
Commits (3)
......@@ -11,6 +11,7 @@ https://dev.louiz.org/projects/poezio/roadmap
- Contacts won’t be seen playing games or music when they actually stop doing
so.
- /leave now toggles off the autojoin flag instead of removing the bookmark.
- Only add auotjoin on new bookmarks for synchronise_open_rooms on /join
- /affiliation displays things in the info win instead of directly in the room,
and additionally displays which room it refers to.
- List the correct required versions for package maintainers.
......@@ -20,6 +21,8 @@ https://dev.louiz.org/projects/poezio/roadmap
- Only send an unavailable presence on closing a room if we are joined.
- Don’t display the current date for history messages received today.
- Fix marquee and dice plugin to use newer Last Message Correction format.
- Bookmarks tab properly displays bookmarks method (local/remote) and allows
to switch between them again.
# Forgotten additions
......
......@@ -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:
......
......@@ -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)
......
......@@ -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:
......