Skip to content

refactor: remove timesmearing#8226

Open
link2xt wants to merge 2 commits into
mainfrom
link2xt/remove-timesmearing
Open

refactor: remove timesmearing#8226
link2xt wants to merge 2 commits into
mainfrom
link2xt/remove-timesmearing

Conversation

@link2xt
Copy link
Copy Markdown
Collaborator

@link2xt link2xt commented May 8, 2026

One problem with removing it is that chat name or description may not be applied if it is done twice within the same second:

&& (chat_group_name_timestamp, grpname) < (group_name_timestamp, &chat.name)

Previously the sender increased the timestamp each time, so it was clear which update is the latest, but now the tests that rename the chat multiple times in a row break without sleep(1).

Also had to insert time shift in some "golden" tests because otherwise they become flaky if the messages are sent by different senders and are received not in the order in which they are sent. If the second is the same, they were ordered in reception order, if the second is different they were ordered by timestamp and in the sending order.

@link2xt link2xt force-pushed the link2xt/remove-timesmearing branch 7 times, most recently from 768f1cd to 8379b9d Compare May 8, 2026 21:04
@link2xt link2xt force-pushed the link2xt/remove-timesmearing branch from 8379b9d to 4f919ce Compare May 9, 2026 08:34
@link2xt link2xt marked this pull request as ready for review May 9, 2026 15:54
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.

1 participant