Mercurial > libervia-backend
diff sat_frontends/quick_frontend/quick_chat.py @ 3101:ab7e8ade848a
plugin XEP-0045: added room statuses to metadata:
room statuses are now sent with other metadata on bridge signals, and saved in Room
instance. They give useful data on the room, for instance they can be used to know if a
full jid is used in this room.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 30 Dec 2019 20:44:02 +0100 |
parents | 95c94d94872d |
children | 9d0df638c8b4 |
line wrap: on
line diff
--- a/sat_frontends/quick_frontend/quick_chat.py Sat Dec 28 20:02:18 2019 +0100 +++ b/sat_frontends/quick_frontend/quick_chat.py Mon Dec 30 20:44:02 2019 +0100 @@ -264,7 +264,7 @@ visible_states = ["chat_state"] # FIXME: to be removed, used only in quick_games def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None, - subject=None, profiles=None): + subject=None, statuses=None, profiles=None): """ @param type_: can be C.CHAT_ONE2ONE for single conversation or C.CHAT_GROUP for chat à la IRC @@ -299,6 +299,7 @@ self.messages = OrderedDict() # key: uid, value: Message instance self.games = {} # key=game name (unicode), value=instance of quick_games.RoomGame self.subject = subject + self.statuses = set(statuses or []) lt = time.localtime() self.day_change = ( lt.tm_year,