diff sat_frontends/primitivus/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 ab2696e34d29
children 9d0df638c8b4
line wrap: on
line diff
--- a/sat_frontends/primitivus/chat.py	Sat Dec 28 20:02:18 2019 +0100
+++ b/sat_frontends/primitivus/chat.py	Mon Dec 30 20:44:02 2019 +0100
@@ -283,7 +283,7 @@
 
 class Chat(PrimitivusWidget, quick_chat.QuickChat):
     def __init__(self, host, target, type_=C.CHAT_ONE2ONE, nick=None, occupants=None,
-                 subject=None, profiles=None):
+                 subject=None, statuses=None, profiles=None):
         self.filters = []  # list of filter callbacks to apply
         self.mess_walker = urwid.SimpleListWalker([])
         self.mess_widgets = urwid.ListBox(self.mess_walker)
@@ -292,7 +292,8 @@
         self.pile = urwid.Pile([self.chat_colums])
         PrimitivusWidget.__init__(self, self.pile, target)
         quick_chat.QuickChat.__init__(
-            self, host, target, type_, nick, occupants, subject, profiles=profiles
+            self, host, target, type_, nick, occupants, subject, statuses,
+            profiles=profiles
         )
 
         # we must adapt the behaviour with the type