diff options
author | mathieui <mathieui@mathieui.net> | 2021-01-29 11:23:31 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-01-29 11:23:31 +0100 |
commit | 9f1e80cd5ccb8e9eade8239d1c37b27a69ed11e3 (patch) | |
tree | 0d96c6a5e7e7aa730a3d93225cec9440b6108878 /poezio/bookmarks.py | |
parent | b2c846f959cf5a67fa714a40e9aa04ae6ddabbe1 (diff) | |
download | poezio-9f1e80cd5ccb8e9eade8239d1c37b27a69ed11e3.tar.gz poezio-9f1e80cd5ccb8e9eade8239d1c37b27a69ed11e3.tar.bz2 poezio-9f1e80cd5ccb8e9eade8239d1c37b27a69ed11e3.tar.xz poezio-9f1e80cd5ccb8e9eade8239d1c37b27a69ed11e3.zip |
Remove force_remote_bookmarks option
It is 2021, servers ought to not be broken that much.
Diffstat (limited to 'poezio/bookmarks.py')
-rw-r--r-- | poezio/bookmarks.py | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/poezio/bookmarks.py b/poezio/bookmarks.py index 4ce06cf0..d95e8fd5 100644 --- a/poezio/bookmarks.py +++ b/poezio/bookmarks.py @@ -279,25 +279,9 @@ class BookmarkList: def get_remote(self, xmpp, information, callback): """Add the remotely stored bookmarks to the list.""" - force = config.get('force_remote_bookmarks') - if xmpp.anon or not (any(self.available_storage.values()) or force): + if xmpp.anon or not any(self.available_storage.values()): information('No remote bookmark storage available', 'Warning') return - - if force and not any(self.available_storage.values()): - old_callback = callback - method = 'pep' if self.preferred == 'pep' else 'privatexml' - - def new_callback(result): - if result['type'] != 'error': - self.available_storage[method] = True - old_callback(result) - else: - information('No remote bookmark storage available', - 'Warning') - - callback = new_callback - if self.preferred == 'pep': self.get_pep(xmpp, callback=callback) else: |