updated obtaining rooms method in chat