Do not try to send (and fail) sending PEP via Zeroconf. Fixes #5432.
This commit is contained in:
parent
ff551cd75d
commit
d6e6a5d62d
|
@ -555,7 +555,7 @@ class ConnectionPEP(object):
|
|||
if not self.pep_supported:
|
||||
return
|
||||
# not all server support retract, so send empty pep first
|
||||
self.send_tune(None)
|
||||
self.send_nickname(None)
|
||||
self.send_pb_retract('', xmpp.NS_NICK, '0')
|
||||
|
||||
|
||||
|
|
|
@ -2812,6 +2812,8 @@ class Interface:
|
|||
for acct in accounts:
|
||||
if not gajim.account_is_connected(acct):
|
||||
continue
|
||||
if gajim.connections[acct].is_zeroconf:
|
||||
continue
|
||||
if not gajim.config.get_per('accounts', acct, 'publish_tune'):
|
||||
continue
|
||||
if gajim.connections[acct].music_track_info == music_track_info:
|
||||
|
|
|
@ -1898,6 +1898,8 @@ class RosterWindow:
|
|||
|
||||
def send_pep(self, account, pep_dict):
|
||||
connection = gajim.connections[account]
|
||||
if connection.is_zeroconf:
|
||||
return
|
||||
|
||||
if 'activity' in pep_dict:
|
||||
activity = pep_dict['activity']
|
||||
|
@ -1915,6 +1917,8 @@ class RosterWindow:
|
|||
connection.retract_mood()
|
||||
|
||||
def delete_pep(self, jid, account):
|
||||
if gajim.connections[account].is_zeroconf:
|
||||
return
|
||||
if jid == gajim.get_jid_from_account(account):
|
||||
gajim.connections[account].pep = {}
|
||||
self.draw_account(account)
|
||||
|
|
Loading…
Reference in New Issue