~singpolyma/mam_backup

236e4c67037b43da1b7eef570bf9dbfd789fb004 — Stephen Paul Weber 19 days ago 9a4f45d master
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