# HG changeset patch # User Matthew Wild # Date 1603371286 -3600 # Node ID 46897d7769c37b833acba22103adda4557a34963 # Parent 9813b17ee09677afd1d1a503759058740eb350b5 disco: Force calculated caps in outgoing presence diff -r 9813b17ee096 -r 46897d7769c3 plugins/disco.lua --- a/plugins/disco.lua Mon Jun 17 12:32:00 2019 +0100 +++ b/plugins/disco.lua Thu Oct 22 13:54:46 2020 +0100 @@ -328,9 +328,8 @@ end, 50); stream:hook("presence-out", function (presence) - if not presence:get_child("c", xmlns_caps) then - presence:reset():add_child(stream:caps()):reset(); - end + presence:remove_children("c", xmlns_caps); + presence:reset():add_child(stream:caps()):reset(); end, 10); end