diff --git a/sgx_endstream.rb b/sgx_endstream.rb index 9c6f71ebbc1c2127f13c2724b8b603d839b73d29..72f55167f307da63625b57f1a90fc862a6eeda8d 100755 --- a/sgx_endstream.rb +++ b/sgx_endstream.rb @@ -112,9 +112,7 @@ disco_info to: /\A\+?\d+@/ do |iq| end ibr type: :get do |iq| - REDIS.lrange( - "endstream_registration-#{iq.from.stripped}", 0, 2 - ).then do |creds| + REGISTRATION_REPO.find(iq.from).then do |creds| reply = iq.reply reply.registered = true if creds&.first reply.phone = creds&.first.to_s