Fix inviting others to private messages.
Merge pull request #1849 from vikhyat/fix-pm-invite

Fix inviting others to private messages.