fix: use ChannelMessageActionName[] type in listActions

Fixes TS2322 where string[] was not assignable to the expected
ChannelMessageActionName[] return type.
This commit is contained in:
Tony Dehnke
2026-02-21 12:43:51 +00:00
committed by Muhammed Mukhthar CM
parent 5b69954070
commit 1d7c05fe67

View File

@@ -46,7 +46,7 @@ const mattermostMessageActions: ChannelMessageActionAdapter = {
.filter((account) => account.enabled)
.filter((account) => Boolean(account.botToken?.trim() && account.baseUrl?.trim()));
const actions: string[] = [];
const actions: ChannelMessageActionName[] = [];
// Send (buttons) is available whenever there's at least one enabled account
if (enabledAccounts.length > 0) {