Skip to content

feat: Include timestamp with group updates - #828

Open
Drache93 wants to merge 5 commits into
mainfrom
feat/group-update-timestamp
Open

feat: Include timestamp with group updates#828
Drache93 wants to merge 5 commits into
mainfrom
feat/group-update-timestamp

Conversation

@Drache93

@Drache93 Drache93 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Includes timestamps in the group events, also moves the event to post
flush to avoid races

Includes timestamps in the group events, also moves the event to post
flush to avoid races
@Drache93
Drache93 requested a review from a team June 1, 2026 11:14
Comment thread lib/session-state.js Outdated
chm-diederichs
chm-diederichs previously approved these changes Jun 1, 2026
One case where the adjustments `ongroupupdate` being called "misses"
existing triggers is flushing an atom. This hits `_oncommit()` which
always updated the index (if it has a group & is the default session).
This caused it to trigger the hook. This is incorrect, so the moving of
the hook to `lib/core.js`'s `ontruncate()` & `onappend()` fixes it.

Currently it still triggers one event because `onappend()` is triggered
without checking if any blocks are appended when flushing an atom.
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.

3 participants