Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
chore: changelog entry and prettier fix for the archived-state change
Suryaaee307556611
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 02219ebaf..767b51e08 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0engine, for large accounts whose reads fail with `Runtime.callFunctionOn timed out`. Unset keepsPuppeteer's own budget, so nothing changes for a deployment that does not set it. The gatewayrefuses to boot on `0` or on a value above 2147483647; see docs/12 for when to reach for it.+- `GET /sessions/{sessionId}/chats` reports each chat's `archived` state. The archive/unarchive+ action (`POST /sessions/{sessionId}/chats/archive`) already existed; the chat list just never+ reported the resulting state back, so a consumer had no way to filter archived chats out of (or+ into) its own view.### Changeddiff --git a/src/engine/types/whatsapp-web-js.types.ts b/src/engine/types/whatsapp-web-js.types.tsindex 4596ee998..ae48821d1 100644--- a/src/engine/types/whatsapp-web-js.types.ts+++ b/src/engine/types/whatsapp-web-js.types.ts@@ -130,9 +130,7 @@ export interface BusinessClient extends Omit<getLabels(): Promise<Array<{ id: string; name: string; hexColor: string }>>;getLabelById(id: string): Promise<{ id: string; name: string; hexColor: string } | null>;/** Chats carrying a label. whatsapp-web.js has the read but exposes no label create/update/delete. */- getChatsByLabelId(- labelId: string,- ): Promise<+ getChatsByLabelId(labelId: string): Promise<Array<| {id?: { _serialized?: string };