Mercurial > libervia-desktop-kivy
diff cagou/kv/common.kv @ 458:1dd6db69406a
core: update avatar handling following backend changes:
new avatar data format is handled. When ContactItem is created, avatar and nicknames are
requested to backend if they are not already in cache.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 14 Apr 2020 21:14:44 +0200 |
parents | efee0e0afb78 |
children | 72290ebfaa8b |
line wrap: on
line diff
--- a/cagou/kv/common.kv Wed Apr 01 23:59:00 2020 +0200 +++ b/cagou/kv/common.kv Tue Apr 14 21:14:44 2020 +0200 @@ -46,7 +46,7 @@ Avatar: id: avatar pos_hint: {'x': 0, 'y': 0} - source: root.data.get('avatar') or app.default_avatar + source: root.data['avatar']['path'] if root.data.get('avatar') else app.default_avatar allow_stretch: True BoxLayout: id: label_box