From c14a08d708678be84de0ef8355ee0d6e5bbedf78 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 12 Dec 2020 17:28:22 +0100 Subject: =?UTF-8?q?Use=20the=20new=20xep=5F0045=20elements=20from=20slixmp?= =?UTF-8?q?p=C2=A01.6.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- poezio/tabs/basetabs.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'poezio/tabs/basetabs.py') diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 04fc1d8c..e4cdc3af 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -57,8 +57,6 @@ if TYPE_CHECKING: log = logging.getLogger(__name__) -NS_MUC_USER = 'http://jabber.org/protocol/muc#user' - # getters for tab colors (lambdas, so that they are dynamic) STATE_COLORS = { 'disconnected': lambda: get_theme().COLOR_TAB_DISCONNECTED, @@ -690,8 +688,7 @@ class ChatTab(Tab): self.chat_state = state msg['no-store'] = True if isinstance(self, PrivateTab): - x = ET.Element('{%s}x' % NS_MUC_USER) - msg.append(x) + msg.enable('muc') msg.send() def send_composing_chat_state(self, empty_after: bool) -> None: -- cgit v1.2.3