Browse Source

Allow to create group with 1 participant

master
Igor Zhukov 7 years ago
parent
commit
f0a551e1aa
  1. 5
      app/js/controllers.js

5
app/js/controllers.js

@ -567,9 +567,8 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -567,9 +567,8 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.openGroup = function () {
ContactsSelectService.selectContacts({action: 'new_group'}).then(function (userIDs) {
if (userIDs.length == 1) {
$scope.dialogSelect(AppUsersManager.getUserString(userIDs[0]))
} else if (userIDs.length > 1) {
if (userIDs &&
userIDs.length) {
var scope = $rootScope.$new()
scope.userIDs = userIDs

Loading…
Cancel
Save