[native] Replace threadHasPermission with useThreadHasPermission in TextMessage
Summary:
Similar to D11789, but for TextMessage
Depends on D11789
Test Plan: flow + close reading
Reviewers: ashoat, ginsu, tomek
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D11790