Page MenuHomePhabricator

[lib] Don't bump thin thread timestamp for membership robotext
AcceptedPublic

Authored by ashoat on Nov 12 2024, 12:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Wed, Dec 18, 4:13 PM
Unknown Object (File)
Mon, Dec 16, 5:35 AM
Unknown Object (File)
Tue, Dec 10, 6:22 PM
Subscribers
None

Details

Reviewers
tomek
Summary

This addresses ENG-9558 for membership robotext messages. The implementation is broadly similar to D13829.

Depends on D13918

Test Plan

Tested in combination with the rest of the stack. See video in D13918

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Nov 12 2024, 1:29 PM
Harbormaster failed remote builds in B32636: Diff 45772!
tomek added inline comments.
lib/shared/messages/add-members-message-spec.js
238 ↗(On Diff #45779)

Don't bump thick thread timestamp for membership robotext

Shouldn't the condition be inversed? When we return null here, the timestamp isn't bumped, so we should return null for thick threads. Is it correct?

This revision is now accepted and ready to land.Nov 13 2024, 4:57 AM
lib/shared/messages/add-members-message-spec.js
238 ↗(On Diff #45779)

Yes, you're absolutely right. I probably should've tested this better...

lib/shared/messages/add-members-message-spec.js
238 ↗(On Diff #45779)

Wait no, this behavior is actually correct.

We want to match behavior with showInMessagePreview, which hides for thin threads but shows for thick threads.

Similarly, here we want to skip bumping for thin threads, but continue bumping for thick threads.

lib/shared/messages/add-members-message-spec.js
238 ↗(On Diff #45779)

Ok, that makes sense! But in that case, the diff's title should be updated.

ashoat retitled this revision from [lib] Don't bump thick thread timestamp for membership robotext to [lib] Don't bump thin thread timestamp for membership robotext.Nov 14 2024, 4:53 AM
ashoat added inline comments.
lib/shared/messages/add-members-message-spec.js
238 ↗(On Diff #45779)

You're right – updated.