Commit bf77021d authored by Yann Leboulanger's avatar Yann Leboulanger

don't send a new presence when we only want to change pep info

parent 12934ac1
...@@ -1916,6 +1916,9 @@ class RosterWindow: ...@@ -1916,6 +1916,9 @@ class RosterWindow:
child_iterA = self._get_account_iter(account, self.model) child_iterA = self._get_account_iter(account, self.model)
if status != 'offline': if status != 'offline':
if to is None: if to is None:
if status == gajim.connections[account].get_status() and \
txt == gajim.connections[account].status:
return
gajim.config.set_per('accounts', account, 'last_status', status) gajim.config.set_per('accounts', account, 'last_status', status)
gajim.config.set_per('accounts', account, 'last_status_msg', gajim.config.set_per('accounts', account, 'last_status_msg',
helpers.to_one_line(txt)) helpers.to_one_line(txt))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment