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.
This commit is contained in:
parent
b7a74d5034
commit
efe52d755d
1 changed files with 29 additions and 8 deletions
|
|
@ -264,7 +264,7 @@ class QuickChat(quick_widgets.QuickWidget):
|
|||
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 @@ class QuickChat(quick_widgets.QuickWidget):
|
|||
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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue