diff --git a/src/chat_control.py b/src/chat_control.py index 628e6eaad..379440ad0 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1816,8 +1816,7 @@ class ChatControl(ChatControlBase): if not hide_buttonbar_entries and _('Not in Roster') in contact.groups: add_to_roster_menuitem.show() - # If we don't have resource, we can't do file transfer - # in transports, contact holds our info we need to disable it too + # check if it's possible to send a file if gajim.capscache.is_supported(contact, NS_FILE): send_file_menuitem.set_sensitive(True) else: diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index bf7b10769..892f53ace 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -1616,7 +1616,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco, # check if the message is pubsub#event if msg.getTag('event') is not None: - self._pubsubEventCB(con, msg) + if msg.getTag('error') is None: + self._pubsubEventCB(con, msg) return # check if the message is a XEP-0070 confirmation request