Optional target jid
1 files changed, 1 insertions(+), 1 deletions(-) M mam_backup.rb
M mam_backup.rb => mam_backup.rb +1 -1
@@ 23,7 23,7 @@ def rsm(document, after_id) end def sync_mam(last_id) start_mam = Blather::Stanza::Iq.new(:set).tap do |iq| start_mam = Blather::Stanza::Iq.new(:set, ENV["TARGET_JID"]).tap do |iq| iq << Niceogiri::XML::Node.new(:query, iq.document, 'urn:xmpp:mam:2').tap { |query| query << rsm(iq.document, last_id) } end