Change summary
lib/registration.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Detailed changes
@@ -641,7 +641,7 @@ class Registration
subdomain = iq.form.field("subdomain")&.value
domain = "#{subdomain}.snikket.chat"
if iq.form.field(ACTION_VAR)&.value == "custom_domain"
- CustomDomain.new(@tel, old: @old).write
+ CustomDomain.new(@customer, @tel, old: @old).write
elsif @old && (!subdomain || domain == @old.domain)
GetInvite.for(@old, @tel).then(&:write)
else
@@ -695,7 +695,7 @@ class Registration
reply.command << form
}.then do |iq|
if iq.prev?
- CustomDomain.new(@tel, old: @instance).write
+ CustomDomain.new(@customer, @tel, old: @instance).write
else
launch(@instance.domain)
end