From 638af49ece2f19c892e36b54e14ed50db9d19451 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Thu, 1 Oct 2015 23:27:01 +0500 Subject: [PATCH] fix peers invitation on DM group creation --- js/twister_directmsg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/twister_directmsg.js b/js/twister_directmsg.js index 20587ec..b47ce1a 100644 --- a/js/twister_directmsg.js +++ b/js/twister_directmsg.js @@ -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}));