Page MenuHomePhabricator

[lib] Check the timestamps when joining threads
ClosedPublic

Authored by tomek on Sep 2 2024, 4:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 6:19 PM
Unknown Object (File)
Wed, Dec 18, 6:19 PM
Unknown Object (File)
Wed, Dec 18, 6:19 PM
Unknown Object (File)
Wed, Dec 18, 6:04 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Thu, Nov 28, 9:01 PM
Unknown Object (File)
Thu, Nov 28, 8:16 PM
Unknown Object (File)
Thu, Nov 28, 11:22 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #43829)

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