Invitation link UI

This commit is contained in:
yflory
2019-12-12 18:14:17 +01:00
parent d04d36c8cd
commit ef05ac440e
2 changed files with 72 additions and 3 deletions

View File

@@ -1259,6 +1259,17 @@ define([
ctx.store.messenger.openTeamChat(team.getChatData(), onUpdate, cId, cb);
};
var createInviteLink = function (ctx, data, cId, cb) {
var team = ctx.teams[data.teamId];
// var roster = team.roster;
// var name = data.name;
// var password = data.password;
// var msg = data.message;
cb({
error: 'NOT_IMPLEMENTED'
});
};
Team.init = function (cfg, waitFor, emit) {
var team = {};
var store = cfg.store;
@@ -1412,6 +1423,9 @@ define([
if (cmd === 'GET_EDITABLE_FOLDERS') {
return void getEditableFolders(ctx, data, clientId, cb);
}
if (cmd === 'CREATE_INVITE_LINK') {
return void createInviteLink(ctx, data, clientId, cb);
}
};
return team;