Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chat/messages): ensure there is only one label for given date
Covers the case, where timestamps are missynchronized: ``` clock: 0 timestamp: 31.12.2022 10:00:00 clock: 1 timestamp: 01.01.2023 23:59:30 clock: 2 timestamp: 01.01.2023 23:59:45 clock: 3 timestamp: 02.01.2023 00:00:05 clock: 4 timestamp: 02.01.2023 00:00:10 clock: 5 timestamp: 01.01.2023 23:59:55 ``` Before, it would result in repeated labels: ``` clock: 0 timestamp: 31.12.2022 10:00:00 LABEL: 1.01.2023 clock: 1 timestamp: 01.01.2023 23:59:30 clock: 2 timestamp: 01.01.2023 23:59:45 LABEL: 2.01.2023 clock: 3 timestamp: 02.01.2023 00:00:05 clock: 4 timestamp: 02.01.2023 00:00:10 LABEL: 1.01.2023 clock: 5 timestamp: 01.01.2023 23:59:55 ``` fixes: #8962
- Loading branch information