core: moved CHAT_* constants from frontends to core constants + uses constants for MESS_TYPE_* in sendMessage

This commit is contained in:
Goffi 2018-01-03 00:13:48 +01:00
commit a9fb2e568e

View file

@ -119,6 +119,11 @@ class Const(object):
MESS_EXTRA_INFO = "info_type"
## Chat ##
CHAT_ONE2ONE = 'one2one'
CHAT_GROUP = 'group'
## Presence ##
PRESENCE_UNAVAILABLE = 'unavailable'
PRESENCE_SHOW_AWAY = 'away'