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)
Sun, Mar 31, 8:13 AM
Unknown Object (File)
Sun, Mar 31, 8:13 AM
Unknown Object (File)
Sun, Mar 31, 8:12 AM
Unknown Object (File)
Sun, Mar 31, 8:06 AM
Unknown Object (File)
Mar 12 2024, 7:51 AM
Unknown Object (File)
Mar 11 2024, 7:11 PM
Unknown Object (File)
Mar 4 2024, 11:29 AM
Unknown Object (File)
Feb 21 2024, 2:06 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