From 68b41e43ae510cf598f1a599ddb840ab8ec96ea9 Mon Sep 17 00:00:00 2001
From: js <js-gajim@webkeks.org>
Date: Sun, 30 Nov 2008 18:16:11 +0000
Subject: [PATCH] Also apply our notexistant caps trick to XHTML.

---
 src/chat_control.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/chat_control.py b/src/chat_control.py
index c5fae613e5..996300a808 100644
--- a/src/chat_control.py
+++ b/src/chat_control.py
@@ -1235,7 +1235,8 @@ class ChatControl(ChatControlBase):
 
 	def update_toolbar(self):
 		# Formatting
-		if gajim.capscache.is_supported(self.contact, NS_XHTML_IM):
+		if gajim.capscache.is_supported(self.contact, NS_XHTML_IM)
+		and not gajim.capscache.is_supported('notexistant'):
 			self._formattings_button.set_sensitive(True)
 		else:
 			self._formattings_button.set_sensitive(False)
-- 
GitLab