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"],