* Mutes notifications by updating `user.state.muted` to `true`. * * @return {CompositeResponse} Returns instance of CompositeResponse * which contains: * - UserStateResponse - updates user state * - TextResponse - shows OK message with short explanation * -
()
| 49 | * - {@link RedirectResponse} - redirects to `driver-index` |
| 50 | */ |
| 51 | call() { |
| 52 | return new CompositeResponse() |
| 53 | .add(new UserStateResponse({ muted: true })) |
| 54 | .add(new TextResponse({ message: this.t('mute_ok') })) |
| 55 | .add(new RedirectResponse({ path: 'driver-index' })); |
| 56 | } |
| 57 | } |