Mercurial > libervia-backend
changeset 3699:2dab494e56fc
plugin XEP-0264: replace `SIZE_FULL_SCREEN` by `SIZE_BIG`:
`SIZE_FULL_SCREEN` may result in large files, and BoB is currently used to transfer them,
resulting in potentially large stanza. As a result, Libervia profile can be disconnected
from server if stanza max size is reached.
As a temporary workaround, `SIZE_BIG` is now the maximum size used. This should be fixed
in 0.9 with a proper way to transfer large thumbnails (i.e. not BoB).
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Nov 2021 18:08:39 +0100 |
parents | a806dcad6bfc |
children | cfc06915de15 |
files | sat/plugins/plugin_xep_0264.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0264.py Thu Nov 04 18:27:36 2021 +0100 +++ b/sat/plugins/plugin_xep_0264.py Fri Nov 05 18:08:39 2021 +0100 @@ -73,7 +73,10 @@ SIZE_MEDIUM = (640, 640) SIZE_BIG = (1280, 1280) SIZE_FULL_SCREEN = (2560, 2560) - SIZES = (SIZE_SMALL, SIZE_MEDIUM, SIZE_FULL_SCREEN) + # FIXME: SIZE_FULL_SCREEN is currently discarded as the resulting files are too big + # for BoB + # TODO: use an other mechanism than BoB for bigger files + SIZES = (SIZE_SMALL, SIZE_MEDIUM, SIZE_BIG) def __init__(self, host): log.info(_("Plugin XEP_0264 initialization"))