Skip to content

Conversation

@muhammedaksam
Copy link

  • Add archived, pinned, and unreadCount fields to ChatSummary DTO.
  • Update webjs engine to populate these fields.
  • Update noweb engine to populate these fields.
  • Solve issue where _chat metadata was stripped during serialization, causing clients like waha-tui to fail filtering archived chats.

Fixes #1744

- Add `archived`, `pinned`, and `unreadCount` fields to `ChatSummary` DTO.
- Update `webjs` engine to populate these fields.
- Update `noweb` engine to populate these fields.
- Solve issue where `_chat` metadata was stripped during serialization, causing clients like `waha-tui` to fail filtering archived chats.
- Add isGroup, isReadOnly, timestamp, isMuted, muteExpiration properties
- Update webjs engine fetchChatSummary with new fields from Chat object
- Update noweb engine fetchChatSummary with equivalent fields
- Update gows engine fetchChatSummary with equivalent fields

This provides richer chat metadata for client applications to display pinned status, mute icons, and group indicators.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add archived, pinned, and unreadCount to ChatSummary

1 participant