~singpolyma/sgx-jmp

85e561cee8a0f596e37059f778d41a323ce89596 — Stephen Paul Weber 10 months ago 06e59b2
Use support-addresses not notify_from
2 files changed, 6 insertions(+), 1 deletions(-)

M forms/registration/snikket_wait.rb
M test/test_helper.rb
M forms/registration/snikket_wait.rb => forms/registration/snikket_wait.rb +3 -1
@@ 11,5 11,7 @@ field(
	label: "If this takes more than 10 minutes, tap here to contact support",
	var: "support",
	type: "jid-single",
	value: CONFIG[:notify_from]
	value: CONFIG[:xep0157].find { |x|
		x[:var] == "support-addresses"
	}[:value]&.sub(/^xmpp:/, "")
)

M test/test_helper.rb => test/test_helper.rb +3 -0
@@ 97,6 97,9 @@ CONFIG = {
		realm: "sip.example.com",
		app: "sipappid"
	},
	xep0157: [
		{ var: "support-addresses", value: "xmpp:tel@cheogram.com" }
	],
	credit_card_url: ->(*) { "http://creditcard.example.com?" },
	electrum_notify_url: ->(*) { "http://notify.example.com" },
	keep_area_codes: ["556"],