Browse Source

fix peers invitation on DM group creation

master
Simon Grim 9 years ago
parent
commit
638af49ece
  1. 2
      js/twister_directmsg.js

2
js/twister_directmsg.js

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

Loading…
Cancel
Save