Distinguishing between private and group chat
Fixed bug related to auth()