lib/welcome_message.rb 🔗
@@ -7,7 +7,10 @@ class WelcomeMessage
end
def welcome
- @customer.stanza_to(message)
+ EM.promise_timer(10).then do
+ # Wait for cheogram to get the finish and set up the route
+ @customer.stanza_to(message)
+ end
end
def message