comparison cagou/plugins/plugin_wid_chat.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 6c21a5a44b54
children 3c9ba4a694ef
comparison
equal deleted inserted replaced
457:ec11a35dcf14 458:1dd6db69406a
111 orientation: 'vertical' 111 orientation: 'vertical'
112 width: avatar.width 112 width: avatar.width
113 size_hint: None, 1 113 size_hint: None, 1
114 MessAvatar: 114 MessAvatar:
115 id: avatar 115 id: avatar
116 source: (root.mess_data.avatar or '') if root.mess_data else '' 116 source: root.mess_data.avatar['path'] if root.mess_data and root.mess_data.avatar else app.default_avatar
117 on_press: root.chat.addNick(root.nick) 117 on_press: root.chat.addNick(root.nick)
118 Widget: 118 Widget:
119 # use to push the avatar on the top 119 # use to push the avatar on the top
120 size_hint: 1, 1 120 size_hint: 1, 1
121 BoxLayout: 121 BoxLayout: