summaryrefslogtreecommitdiff
path: root/poezio/tabs/basetabs.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/tabs/basetabs.py')
-rw-r--r--poezio/tabs/basetabs.py5
1 files changed, 1 insertions, 4 deletions
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: