Page MenuHomePhabricator

[lib] Add invariant to SidebarSource notificationTexts
ClosedPublic

Authored by ashoat on Feb 23 2023, 1:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 11:34 PM
Unknown Object (File)
Fri, May 10, 11:33 PM
Unknown Object (File)
Fri, May 10, 11:33 PM
Unknown Object (File)
Fri, May 10, 11:33 PM
Unknown Object (File)
Thu, May 2, 11:01 PM
Unknown Object (File)
Thu, May 2, 11:00 PM
Unknown Object (File)
Thu, May 2, 10:12 PM
Unknown Object (File)
Thu, May 2, 8:56 PM
Subscribers

Details

Summary

While we do indicate SidebarSource generates notifs in generatesNotifs, it should always be collapsed, and should never appear as the most recent message for a given collapse key (since CreateSidebar is created at the same time and always is considered "newer").

To make sure that notificationTexts is never called for SidebarSource, I'm adding this invariant here.

Depends on D6869

Test Plan

Made sure this invariant never gets triggered in a variety of sidebar creation scenarios

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable