[lib] Only pass threadID to getMostRecentNonLocalMessageID
Summary: Some potential callers have RawThreadInfo instead of ThreadInfo, so this will make it easier to use this function from more places.
Test Plan: Flow
Reviewers: atul, subnub, palys-swm
Reviewed By: palys-swm
Subscribers: KatPo, zrebcu411, Adrian
Differential Revision: https://phabricator.ashoat.com/D808