fix peers invitation on DM group creation

This commit is contained in:
Simon Grim 2015-10-01 23:27:01 +05:00
parent c89b37acd5
commit 638af49ece

View File

@ -357,7 +357,7 @@ function groupMsgCreateGroup(description, peersToInvite) {
twisterRpc('creategroup', [description],
function(peersToInvite, ret) {
groupMsgInviteToGroup(ret, peersToInvite.push(defaultScreenName));
groupMsgInviteToGroup(ret, peersToInvite.concat([defaultScreenName]));
}, peersToInvite,
function(req, ret) {
alert(polyglot.t('error', {error: 'can\'t create group — ' + ret.message}));