changeset 1232:4ccc5bb65be2

pages (chat): handle room statuses following backend change
author Goffi <goffi@goffi.org>
date Sun, 29 Dec 2019 17:36:25 +0100
parents b9a8049ca1ff
children 5bd801bd36aa
files libervia/pages/chat/page_meta.py
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/pages/chat/page_meta.py	Fri Dec 27 13:35:27 2019 +0100
+++ b/libervia/pages/chat/page_meta.py	Sun Dec 29 17:36:25 2019 +0100
@@ -1,5 +1,4 @@
 #!/usr/bin/env python3
-# -*- coding: utf-8 -*-
 
 from sat.core.i18n import _
 from twisted.internet import defer
@@ -55,8 +54,15 @@
         join_ret = yield self.host.bridgeCall(
             "mucJoin", target_jid.userhost(), "", "", profile
         )
-        already_joined, room_jid_s, occupants, user_nick, room_subject, __ = join_ret
+        (already_joined,
+         room_jid_s,
+         occupants,
+         user_nick,
+         room_subject,
+         room_statuses,
+         __) = join_ret
         template_data["subject"] = room_subject
+        template_data["room_statuses"] = room_statuses
         own_jid = jid.JID(room_jid_s)
         own_jid.resource = user_nick
     else: