Page MenuHomePhabricator

[lib] Check the timestamps when joining threads
ClosedPublic

Authored by tomek on Sep 2 2024, 4:45 AM.
Tags
None
Referenced Files
F3174704: D13217.diff
Thu, Nov 7, 5:43 PM
Unknown Object (File)
Sun, Nov 3, 8:32 PM
Unknown Object (File)
Sun, Nov 3, 8:31 PM
Unknown Object (File)
Sun, Nov 3, 8:31 PM
Unknown Object (File)
Sun, Nov 3, 8:22 PM
Unknown Object (File)
Tue, Oct 22, 6:29 PM
Unknown Object (File)
Fri, Oct 18, 5:16 PM
Unknown Object (File)
Fri, Oct 18, 5:16 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