we can simplify this with something like:
```
if (!outgoing || (recentGroup.type.indexOf('dialing') != -1)) {
  i++;
}
```