Skip to content

Commit ec85633

Browse files
committed
fix(mattermost): reject interaction route replacement
1 parent 98b3e55 commit ec85633

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎extensions/mattermost/src/mattermost/monitor-interactions.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ export function registerMattermostInteractions(params: {
163163
source: "mattermost-interactions",
164164
accountId: account.accountId,
165165
log: (message: string) => runtime.log?.(message),
166-
replaceExisting: true,
167166
throwOnFailure: true,
168167
});
169168
}

‎extensions/mattermost/src/mattermost/monitor.inbound-system-event.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,10 +780,12 @@ describe("mattermost inbound user posts", () => {
780780
accountId: "default",
781781
pluginId: "mattermost",
782782
source: "mattermost-interactions",
783-
replaceExisting: true,
784783
throwOnFailure: true,
785784
}),
786785
);
786+
expect(mockState.registerPluginHttpRoute.mock.calls[0]?.[0]).not.toHaveProperty(
787+
"replaceExisting",
788+
);
787789
expect(mockState.registerMattermostMonitorSlashCommands).not.toHaveBeenCalled();
788790
expect(webSocketFactory).not.toHaveBeenCalled();
789791
expect(statusSink).not.toHaveBeenCalledWith(expect.objectContaining({ lifecycle: "ready" }));

0 commit comments

Comments
 (0)