Extract the `then` callback to a standalone function (i.e `handleNotification()`). Then rewrite to:
```javascript
SilentSms.checkSilentModeFor(message.sender).then(handleNotification);
 ```