Mercurial > libervia-desktop-kivy
diff src/cagou/plugins/plugin_wid_chat.py @ 103:c601e3d40342
chat: display delivery receipt (with a green check mark)
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 09 Jan 2017 00:46:59 +0100 |
parents | 20251d926cc2 |
children | ce6ef88f2cff |
line wrap: on
line diff
--- a/src/cagou/plugins/plugin_wid_chat.py Thu Jan 05 20:36:41 2017 +0100 +++ b/src/cagou/plugins/plugin_wid_chat.py Mon Jan 09 00:46:59 2017 +0100 @@ -526,6 +526,7 @@ mess_xhtml = properties.ObjectProperty() mess_padding = (dp(5), dp(5)) avatar = properties.ObjectProperty() + delivery = properties.ObjectProperty() def __init__(self, **kwargs): super(MessageWidget, self).__init__(**kwargs) @@ -564,6 +565,9 @@ def update(self, update_dict): if 'avatar' in update_dict: self.avatar.source = update_dict['avatar'] + if 'status' in update_dict: + status = update_dict['status'] + self.delivery.text = u'\u2714' if status == 'delivered' else u'' class MessageInputBox(BoxLayout):