Commit d80be46e authored by Philipp Hörist's avatar Philipp Hörist

MUC: Don't add caps when sending unavailable presence

parent 290c7fcd
......@@ -215,7 +215,8 @@ def leave(self, room_jid, reason=None):
self._con.get_module('Presence').send_presence(
muc_data.occupant_jid,
typ='unavailable',
status=reason)
status=reason,
caps=False)
# We leave a group chat, disable bookmark autojoin
self._con.get_module('Bookmarks').modify(room_jid, autojoin=False)
......@@ -303,7 +304,6 @@ def update_presence(self, auto=False):
muc_data.occupant_jid,
show=self._con.status,
status=self._con.status_message,
caps=True,
idle_time=auto)
def change_nick(self, room_jid, new_nick):
......
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