Add comments and XXX

pull/1/head
yflory 5 years ago
parent 4128c34b93
commit 83bc0d84f0

@ -759,6 +759,8 @@ define([
var teams = {}; var teams = {};
if (privateData.enableTeams) { if (privateData.enableTeams) {
Object.keys(teamsData).forEach(function (id) { Object.keys(teamsData).forEach(function (id) {
// config.teamId only exists when we're trying to share a pad from a team drive
// In this case, we don't want to share the pad with the current team
if (config.teamId && config.teamId === id) { return; } if (config.teamId && config.teamId === id) { return; }
var t = teamsData[id]; var t = teamsData[id];
teams[t.edPublic] = { teams[t.edPublic] = {
@ -769,7 +771,7 @@ define([
id: id id: id
}; };
}); });
var teamsList = UIElements.getFriendsList('Share with a team', { var teamsList = UIElements.getFriendsList('Share with a team', { // XXX
common: common, common: common,
noFilter: true, noFilter: true,
friends: teams friends: teams

@ -262,6 +262,7 @@ define([
var teamName = Util.fixHTML(Util.find(msg, ['content', 'team', 'metadata', 'name']) || ''); var teamName = Util.fixHTML(Util.find(msg, ['content', 'team', 'metadata', 'name']) || '');
content.getFormatText = function () { content.getFormatText = function () {
var text = name + " has invited you to join the team <b>" + teamName +"</b>"; var text = name + " has invited you to join the team <b>" + teamName +"</b>";
// XXX
return text; return text;
}; };
if (!content.archived) { if (!content.archived) {
@ -280,6 +281,7 @@ define([
var teamName = Util.fixHTML(Util.find(msg, ['content', 'teamName']) || ''); var teamName = Util.fixHTML(Util.find(msg, ['content', 'teamName']) || '');
content.getFormatText = function () { content.getFormatText = function () {
var text = name + " has kicked you from join the team <b>" + teamName +"</b>"; var text = name + " has kicked you from join the team <b>" + teamName +"</b>";
// XXX
return text; return text;
}; };
if (!content.archived) { if (!content.archived) {

@ -66,7 +66,7 @@ define([
if (!s) { return void cb({ error: 'ENOTFOUND' }); } if (!s) { return void cb({ error: 'ENOTFOUND' }); }
nThen(function (waitFor) { nThen(function (waitFor) {
Realtime.whenRealtimeSyncs(s.realtime, waitFor()); Realtime.whenRealtimeSyncs(s.realtime, waitFor());
if (s.sharedFolders) { if (s.sharedFolders && typeof (s.sharedFolders) === "object") {
for (var k in s.sharedFolders) { for (var k in s.sharedFolders) {
Realtime.whenRealtimeSyncs(s.sharedFolders[k].realtime, waitFor()); Realtime.whenRealtimeSyncs(s.sharedFolders[k].realtime, waitFor());
} }

Loading…
Cancel
Save