fix(channels): include linked field in WhatsApp describeAccount
Fixes #1030 The describeAccount function for WhatsApp was not returning the linked field, causing the Channels status section to show "Not linked" even when WhatsApp was properly linked and working. The fix adds the linked field to describeAccount, set to the same value as configured (Boolean(account.authDir)). This ensures that the Channels section and Health section show consistent status.
This commit is contained in:
committed by
Peter Steinberger
parent
e31251293b
commit
6bba84b043
@@ -109,6 +109,7 @@ export const whatsappPlugin: ChannelPlugin<ResolvedWhatsAppAccount> = {
|
||||
name: account.name,
|
||||
enabled: account.enabled,
|
||||
configured: Boolean(account.authDir),
|
||||
linked: Boolean(account.authDir),
|
||||
dmPolicy: account.dmPolicy,
|
||||
allowFrom: account.allowFrom,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user