Small refactor diff so that we can use `getMessageLabel` in a subsequent diff. In this subsqeuent diff we will use this function, but we will only have access to the `threadID` from the `messageInfo`. Since we are only using the `threadID` in this function, it seems better to only pass the `threadID` instead of the whole `threadInfo`