Skip to content

Count only messages the inbox can open - #385

Merged
sinamics merged 1 commit into
mainfrom
fix/unread-counts-what-the-inbox-shows
Sep 11, 2026
Merged

Count only messages the inbox can open#385
sinamics merged 1 commit into
mainfrom
fix/unread-counts-what-the-inbox-shows

Conversation

@sinamics

Copy link
Copy Markdown
Contributor

The Messages pill counted inbound SMS and Telegram rows with no customer, which the inbox never lists and can never mark read, so a stranded pair kept it at 2. SMS and Telegram now count only rows with a customer; WhatsApp is unchanged because unmatched numbers are listed. When a Telegram chat links through /start, its earlier customer-less messages are attached to the customer. A data migration does the same for rows already in the database.

Unit tests for the count and the webhook's adoption of earlier messages.

@sinamics
sinamics merged commit 9a861a9 into main Sep 11, 2026
7 checks passed
@sinamics
sinamics deleted the fix/unread-counts-what-the-inbox-shows branch September 11, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant