If we receive an error PEP packet, don't treat it as incoming PEP event
This commit is contained in:
parent
3fe385d203
commit
e67048bdfd
2 changed files with 3 additions and 3 deletions
|
@ -1816,8 +1816,7 @@ class ChatControl(ChatControlBase):
|
||||||
if not hide_buttonbar_entries and _('Not in Roster') in contact.groups:
|
if not hide_buttonbar_entries and _('Not in Roster') in contact.groups:
|
||||||
add_to_roster_menuitem.show()
|
add_to_roster_menuitem.show()
|
||||||
|
|
||||||
# If we don't have resource, we can't do file transfer
|
# check if it's possible to send a file
|
||||||
# in transports, contact holds our info we need to disable it too
|
|
||||||
if gajim.capscache.is_supported(contact, NS_FILE):
|
if gajim.capscache.is_supported(contact, NS_FILE):
|
||||||
send_file_menuitem.set_sensitive(True)
|
send_file_menuitem.set_sensitive(True)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1616,6 +1616,7 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
|
|
||||||
# check if the message is pubsub#event
|
# check if the message is pubsub#event
|
||||||
if msg.getTag('event') is not None:
|
if msg.getTag('event') is not None:
|
||||||
|
if msg.getTag('error') is None:
|
||||||
self._pubsubEventCB(con, msg)
|
self._pubsubEventCB(con, msg)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue