diff --git a/src/chat_control.py b/src/chat_control.py index a7aa40bc98e529b78a9eaf6de9fc679755429e27..659903cfb1e87a40e3358a87b2c15bfba94425d4 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1253,7 +1253,8 @@ class ChatControl(ChatControlBase): self._add_to_roster_button.hide() # Send file - if gajim.capscache.is_supported(self.contact, NS_FILE): + if gajim.capscache.is_supported(self.contact, NS_FILE) and \ + self.contact.resource: self._send_file_button.set_sensitive(True) else: self._send_file_button.set_sensitive(False)