MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / revert

Method revert

src/actions/Message.ts:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 }
119
120 override async revert(): Promise<void> {
121 const messageModal = this.engine.component('message-modal') as { instances?: () => { remove: () => void } } | undefined;
122 if (messageModal?.instances) {
123 messageModal.instances().remove();
124 }
125 return this.apply();
126 }
127
128 override async didRevert(): Promise<ActionRevertResult> {
129 return { advance: false, step: true };

Callers

nothing calls this directly

Calls 4

applyMethod · 0.95
componentMethod · 0.80
removeMethod · 0.65
instancesMethod · 0.45

Tested by

no test coverage detected