Very dirty hack of core, but needed for global new messages, the hook is from 1.22