Load shared folder and register change events in teams
This commit is contained in:
@@ -4316,18 +4316,20 @@ define([
|
||||
refresh();
|
||||
UI.removeLoadingScreen();
|
||||
|
||||
sframeChan.query('Q_DRIVE_GETDELETED', null, function (err, data) {
|
||||
var ids = manager.findChannels(data);
|
||||
var titles = [];
|
||||
ids.forEach(function (id) {
|
||||
var title = manager.getTitle(id);
|
||||
titles.push(title);
|
||||
var paths = manager.findFile(id);
|
||||
manager.delete(paths, refresh);
|
||||
if (!APP.isTeam) {
|
||||
sframeChan.query('Q_DRIVE_GETDELETED', null, function (err, data) {
|
||||
var ids = manager.findChannels(data);
|
||||
var titles = [];
|
||||
ids.forEach(function (id) {
|
||||
var title = manager.getTitle(id);
|
||||
titles.push(title);
|
||||
var paths = manager.findFile(id);
|
||||
manager.delete(paths, refresh);
|
||||
});
|
||||
if (!titles.length) { return; }
|
||||
UI.log(Messages._getKey('fm_deletedPads', [titles.join(', ')]));
|
||||
});
|
||||
if (!titles.length) { return; }
|
||||
UI.log(Messages._getKey('fm_deletedPads', [titles.join(', ')]));
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
refresh: refresh
|
||||
|
||||
Reference in New Issue
Block a user