Fix for email delivery
Fixed logic for retrieving correct user id from room id for mailer