Revert "PERF: Improve query performance all inbox private messages. (#14304)" (PR #14344)

This reverts commit ddb458343dc39a7a8c99467dcd809b444514fe2c.

GitHub