No need to generate fallback body in SGX anymore, cheogram can do that now

Stephen Paul Weber created

Change summary

sgx-bwmsgsv2.rb | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)

Detailed changes

sgx-bwmsgsv2.rb 🔗

@@ -186,17 +186,11 @@ module SGXbwmsgsv2
 		puts 'ORIG_URL: ' + media_url
 		puts 'PROX_URL: ' + proxy_url
 
-		# put URL in the body (so Conversations will still see it)...
-		msg = Blather::Stanza::Message.new(to, proxy_url)
-		if m
-			msg = m.copy
-			msg.body = proxy_url
-		end
+		msg = m ? m.copy : Blather::Stanza::Message.new(to, "")
 		msg.from = from
 		msg.subject = subject if subject
 
-		# ...but also provide URL in XEP-0066 (OOB) fashion
-		# TODO: confirm client supports OOB or don't send this
+		# provide URL in XEP-0066 (OOB) fashion
 		x = Nokogiri::XML::Node.new 'x', msg.document
 		x['xmlns'] = 'jabber:x:oob'