Page MenuHomePhabricator

[native] Add a C++ MessageSpec for SidebarSource
ClosedPublic

Authored by ashoat on Mar 16 2023, 1:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 8:59 AM
Unknown Object (File)
Sat, Dec 7, 7:19 AM
Unknown Object (File)
Thu, Dec 5, 2:34 AM
Unknown Object (File)
Thu, Dec 5, 2:24 AM
Unknown Object (File)
Nov 8 2024, 3:46 PM
Unknown Object (File)
Nov 7 2024, 4:29 AM
Unknown Object (File)
Nov 4 2024, 11:36 PM
Unknown Object (File)
Nov 4 2024, 11:36 PM
Subscribers

Details

Summary

In D6869, I updated SidebarSourceMessageSpec.generatesNotifs so that it returned pushTypes.NOTIF. While SidebarSourceMessageSpec.notificationTexts should never be called, this still made it so SidebarSource messages could be included as the second item in notif payloads' messageInfos, since they get collapsed into the CreateSidebar.

As a result of being included in the notif payloads, SidebarSource is now getting processed by NSE, but since there is a missing C++ MessageSpec for it, we end up persisting an empty content to SQLite.

Test Plan

I was able to repro the "content must be defined" error before this diff by creating a sidebar that auto-added a test user. The test user would get the payload with SidebarSource, which would trigger the error. After this diff, the error no longer repros

Diff Detail

Repository
rCOMM Comm
Branch
ashoat/olm
Lint
No Lint Coverage
Unit
No Test Coverage