Page MenuHomePhabricator

[lib] Check the timestamps when joining threads
ClosedPublic

Authored by tomek on Sep 2 2024, 4:45 AM.
Tags
None
Referenced Files
F4087257: D13217.diff
Sun, Feb 16, 10:00 AM
Unknown Object (File)
Wed, Jan 22, 3:13 PM
Unknown Object (File)
Jan 15 2025, 11:45 AM
Unknown Object (File)
Jan 13 2025, 5:07 AM
Unknown Object (File)
Dec 18 2024, 6:19 PM
Unknown Object (File)
Dec 18 2024, 6:19 PM
Unknown Object (File)
Dec 18 2024, 6:19 PM
Unknown Object (File)
Dec 18 2024, 6:04 PM
Subscribers

Details

Summary

Only update the membership when the operation is younger than the saved timestamp.

https://linear.app/comm/issue/ENG-9115/update-jointhreadspec

Depends on D13216

Test Plan

Created two join thread operations and made sure the timestamp is set correctly.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/shared/dm-ops/join-thread-spec.js
174 ↗(On Diff #43825)

There was a bug that caused an operation to be queued when a viewer was joining a thread.

tomek requested review of this revision.Sep 2 2024, 5:01 AM
inka added inline comments.
lib/shared/dm-ops/join-thread-spec.js
73

Same as in the previous diff we should probably handle timestamp collision

This revision is now accepted and ready to land.Sep 3 2024, 3:43 AM