Skip to content
Snippets Groups Projects
Unverified Commit 5a0c3a27 authored by Kevin Aleman's avatar Kevin Aleman Committed by GitHub
Browse files

[IMPROVE] Save toPhone when receiving SMSs (#27656)

parent 6c75ce5b
No related branches found
No related tags found
No related merge requests found
......@@ -192,6 +192,9 @@ API.v1.addRoute('livechat/sms-incoming/:service', {
if (sms.extra.fromCity) {
Meteor.call('livechat:setCustomField', sendMessage.message.token, 'city', sms.extra.fromCity);
}
if (sms.extra.toPhone) {
Meteor.call('livechat:setCustomField', sendMessage.message.token, 'phoneNumber', sms.extra.toPhone);
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment