diff cagou/plugins/plugin_wid_chat.kv @ 433:aa204c813f07

chat: attachment preview: - if there is not already one, a preview is generated for images collection thumbnails, instead of using the full size image. - for images attachment, local path is now used if present, before URL.
author Goffi <goffi@goffi.org>
date Sun, 01 Mar 2020 22:11:25 +0100
parents d3a6ae859556
children 977158b56ce6
line wrap: on
line diff
--- a/cagou/plugins/plugin_wid_chat.kv	Sun Mar 01 22:11:25 2020 +0100
+++ b/cagou/plugins/plugin_wid_chat.kv	Sun Mar 01 22:11:25 2020 +0100
@@ -63,7 +63,7 @@
     orientation: "vertical"
     SizedImage:
         id: image
-        source: root.data.get('url', root.data.get('path'))
+        source: root.data.get('preview') or root.data.get('path') or root.data.get('url')
         anim_delay: -1