stanza expects to to be set to *something*

Stephen Paul Weber created

Change summary

lib/backend_sgx.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Detailed changes

lib/backend_sgx.rb 🔗

@@ -55,8 +55,9 @@ class BackendSgx
 	end
 
 	def commands
-		iq = stanza(Blather::Stanza::DiscoItems.new(:get, COMMANDS_DISCO_NODE))
-		IQ_MANAGER.write(iq).then(&:items).catch { |e|
+		iq = Blather::Stanza::DiscoItems.new(:get, COMMANDS_DISCO_NODE)
+		iq.to = ""
+		IQ_MANAGER.write(stanza(iq)).then(&:items).catch { |e|
 			Sentry.capture_exception(e)
 			[]
 		}