nit: add the prefix "thui_"

@borjasalguero I'm not sure we can create a separate file for that, this is really related to the thread view ui after all.

the only thing that could be exported is the `attachmentMap` handling, and I don't think this is worth it.. for now.