* [messaging] Fix thread cleaner service subqueries * add pagination * various fixes * Fix thread merging * fix * fix