iachat/app/javascript/dashboard/store/modules/conversations
Shivam Mishra 27bce50210
fix: Incorrect date parsing in matchesFilter (#11679)
The `matchesFilter` is a utility that checks the incoming payload
against a filter and returns `true` or `false`.
For the `greater_than` and `less_than` filter specifically, the date
parsing would fail when the timestamp was a 10 digit number.

This PR solves this by adding a `coerceToDate` method that tries to
parse the given value to a Date object as correctly as possible before
comparing.

Ref: https://github.com/chatwoot/utils/pull/53
2025-06-05 19:38:56 -05:00
..
actions feat: Add Google Translate API Integration (#6454) 2023-02-15 20:50:45 -08:00
helpers fix: Incorrect date parsing in matchesFilter (#11679) 2025-06-05 19:38:56 -05:00
specs feat: allow role based filtering on the frontend (#11246) 2025-04-09 11:46:20 -07:00
actions.js feat: Add conversation delete feature (#11677) 2025-06-05 15:53:17 -05:00
getters.js feat: Enforce role permissions on filtered page (#11638) 2025-05-30 15:19:42 +05:30
helpers.js feat: allow role based filtering on the frontend (#11246) 2025-04-09 11:46:20 -07:00
index.js feat: Add conversation delete feature (#11677) 2025-06-05 15:53:17 -05:00