diff --git a/sgx-bwmsgsv2.rb b/sgx-bwmsgsv2.rb index bfee7176214aba2b04236129e4a88394525055b1..7552eb108b87e1f0a2a430c65f36dd21c8b6de9a 100755 --- a/sgx-bwmsgsv2.rb +++ b/sgx-bwmsgsv2.rb @@ -118,7 +118,7 @@ module SGXbwmsgsv2 # put URL in the body (so Conversations will still see it)... msg = Blather::Stanza::Message.new(to, proxy_url) if m - msg = m + msg = m.copy msg.body = proxy_url end msg.from = from @@ -928,7 +928,7 @@ class WebhookHandler < Goliath::API others_num + '@' + ARGV[0], bare_jid, media_url, - nil, nil, msg.copy + nil, nil, msg ) end end unless not jparams['media']