# HG changeset patch # User Goffi # Date 1582476593 -3600 # Node ID 8a9bfe3fb9c6518ad0bb321770ff65cb66e4b991 # Parent 5b50b7ef261770d56caeee4184693b45766d604b chat: use constant instead of hard-coded string for C.MESS_KEY_MEDIA_TYPE diff -r 5b50b7ef2617 -r 8a9bfe3fb9c6 cagou/plugins/plugin_wid_chat.py --- a/cagou/plugins/plugin_wid_chat.py Sun Feb 23 17:16:27 2020 +0100 +++ b/cagou/plugins/plugin_wid_chat.py Sun Feb 23 17:49:53 2020 +0100 @@ -99,7 +99,7 @@ progress = properties.NumericProperty(0) def get_symbol(self, data): - media_type = data.get('media_type', '') + media_type = data.get(C.MESS_KEY_MEDIA_TYPE, '') main_type = media_type.split('/', 1)[0] if main_type == 'image': return "file-image"