Page MenuHomePhabricator

[lib] Add @-mentioned users in initial sidebar message at creation time
ClosedPublic

Authored by ashoat on Feb 20 2023, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 4:56 PM
Unknown Object (File)
Tue, Oct 29, 4:56 PM
Unknown Object (File)
Tue, Oct 29, 4:56 PM
Unknown Object (File)
Tue, Oct 29, 4:56 PM
Unknown Object (File)
Tue, Oct 29, 4:56 PM
Unknown Object (File)
Tue, Oct 29, 4:52 PM
Unknown Object (File)
Mon, Oct 28, 1:17 PM
Unknown Object (File)
Sun, Oct 20, 10:58 AM
Subscribers

Details

Summary

This solves ENG-3040.

Depends on D6805

Test Plan

I tested this stack with the following steps on both web and native:

  1. Make sure users get auto-added to a sidebar when @-mentioned
  2. Test mentions typeahead and make sure it includes all members of parent
  3. If a user is @-mentioned in a text message that triggers the creation of a sidebar, then make sure they are included in the sidebar creation message
  4. If a user is @-mentioned in a text message that triggers the creation of a sidebar, then make sure their name is bolded from the very start of when the message is visible on-screen

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.Feb 20 2023, 6:04 PM
Harbormaster failed remote builds in B16664: Diff 22792!
atul added inline comments.
lib/shared/thread-utils.js
1563–1565 ↗(On Diff #22799)

Could we do

members.push(...mentionedNewMembers);

here?

This revision is now accepted and ready to land.Feb 21 2023, 12:24 AM