MCPcopy
hub / github.com/ro31337/libretaxi / call

Method call

src/actions/menu/driver/mute.js:51–56  ·  view source on GitHub ↗

* 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 * -

()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
tMethod · 0.45

Tested by

no test coverage detected