comparison cagou/plugins/plugin_wid_chat.py @ 244:5bd94bc08f5c

plugin chat: fixed OTR State filtering + removed some legacy code
author Goffi <goffi@goffi.org>
date Thu, 03 Jan 2019 20:38:46 +0100
parents c2503168fab7
children ff1efdeff53f
comparison
equal deleted inserted replaced
243:50f7c000b4ae 244:5bd94bc08f5c
46 "main": "Chat", 46 "main": "Chat",
47 "description": _(u"instant messaging with one person or a group"), 47 "description": _(u"instant messaging with one person or a group"),
48 "icon_symbol": u"chat", 48 "icon_symbol": u"chat",
49 } 49 }
50 50
51 # following const are here temporary, they should move to quick frontend 51 # FIXME: OTR specific code is legacy, and only used nowadays for lock color
52 # we can probably get rid of them.
52 OTR_STATE_UNTRUSTED = 'untrusted' 53 OTR_STATE_UNTRUSTED = 'untrusted'
53 OTR_STATE_TRUSTED = 'trusted' 54 OTR_STATE_TRUSTED = 'trusted'
54 OTR_STATE_TRUST = (OTR_STATE_UNTRUSTED, OTR_STATE_TRUSTED) 55 OTR_STATE_TRUST = (OTR_STATE_UNTRUSTED, OTR_STATE_TRUSTED)
55 OTR_STATE_UNENCRYPTED = 'unencrypted' 56 OTR_STATE_UNENCRYPTED = 'unencrypted'
56 OTR_STATE_ENCRYPTED = 'encrypted' 57 OTR_STATE_ENCRYPTED = 'encrypted'