Page MenuHomePhabricator

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

Authored by ashoat on Tue, Nov 12, 12:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 11:10 PM
Unknown Object (File)
Wed, Nov 20, 6:25 PM
Unknown Object (File)
Wed, Nov 20, 4:48 PM
Unknown Object (File)
Wed, Nov 20, 12:26 PM
Unknown Object (File)
Wed, Nov 20, 8:26 AM
Unknown Object (File)
Wed, Nov 20, 7:53 AM
Unknown Object (File)
Tue, Nov 19, 11:09 PM
Unknown Object (File)
Tue, Nov 19, 5:31 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.Tue, Nov 12, 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.Wed, Nov 13, 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.Thu, Nov 14, 4:53 AM
ashoat added inline comments.
lib/shared/messages/add-members-message-spec.js
238 ↗(On Diff #45779)

You're right – updated.