Bug997547 correspondence of reviews

have you tested your code? There is no way this can work as you're not calling the function here... I don't think you know what you're doing here.

Please write proper unit tests and test your code on a device. This is part of your job, and this is wasting my time. You need to ask a review once you have tested your code works as expected !


you can do something like this for example:
```javascript
var target, contactFinder;
if (Settings.supportEmailRecipient && type === 'websms/email') {
  target = activity.source.data.email;
  contactFinder = 'findByAddress';
} else {
  target = activity.source.data.number;
  contactFinder = 'findByPhoneNumber;
}

Contacts[contactFinder](target, function findContact...);
```