summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 390c07d13..eaffd9ff4 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1278,6 +1278,16 @@ export default class Client {
this.trackEvent('api', 'api_channels_create_direct', {team_id: this.getTeamId()});
}
+ createGroupChannel(userIds, success, error) {
+ request.
+ post(`${this.getChannelsRoute()}/create_group`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send(userIds).
+ end(this.handleResponse.bind(this, 'createGroupChannel', success, error));
+ }
+
updateChannel(channel, success, error) {
request.
post(`${this.getChannelsRoute()}/update`).