From 236e4c67037b43da1b7eef570bf9dbfd789fb004 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Sun, 2 Jun 2024 13:43:52 -0500 Subject: [PATCH] Optional target jid --- mam_backup.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mam_backup.rb b/mam_backup.rb index 096243f..01cd94c 100644 --- a/mam_backup.rb +++ b/mam_backup.rb @@ -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 -- 2.45.2