We want to display the number of pinned messages in a banner on top of chat the displays the number of pinned messages (if > 0 and if threadInfo contains a pinnedCount field since we gate it by
`hasMinCodeVersion` on native).
The code is largely similar to on `web`: https://phab.comm.dev/D7310
Depends on D7608