[lib] Check the timestamps when changing thread settings
Summary:
Only update properties when they are older than the operation that is being processed.
https://linear.app/comm/issue/ENG-9118/update-changethreadsettingsspec
Depends on D13214
Test Plan:
Performed 3 operations in a row:
- Thread creation with timestamp T
- Thread name change with timestamp T + 2
- Thread name and color change with timestamp T + 1
Made sure that thread color matched the value from 3 and name matched the value from 2.
Reviewers: kamil, inka
Reviewed By: inka
Subscribers: ashoat
Differential Revision: https://phab.comm.dev/D13215