merge in "Return node in reply to disco#info query"

Denver Gingerich created

Analogous to fix for https://github.com/singpolyma/cheogram/issues/71 .

See merge request ossguy/sgx-catapult!18 for the discussion and details behind the merge.

Change summary

sgx-catapult.rb | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

sgx-catapult.rb 🔗

@@ -663,6 +663,7 @@ module SGXcatapult
 			#puts "XR[node]: #{xpath_result[0]['node']}"
 
 			msg = i.reply
+			msg.node = i.node
 			msg.identities = user_cap_identities
 			msg.features = user_cap_features
 
@@ -673,6 +674,7 @@ module SGXcatapult
 
 		# respond to capabilities request for sgx-catapult itself
 		msg = i.reply
+		msg.node = i.node
 		msg.identities = [{
 			name: 'Soprani.ca Gateway to XMPP - Catapult',
 			type: 'sms', category: 'gateway'