Remove duplicates when migrating anon drive into user drive
This commit is contained in:
@@ -65,7 +65,9 @@ define([
|
||||
if (!proxy.FS_hashes || !Array.isArray(proxy.FS_hashes)) {
|
||||
proxy.FS_hashes = [];
|
||||
}
|
||||
proxy.FS_hashes.push(fsHash);
|
||||
if (proxy.FS_hashes.indexOf(fsHash) === -1) {
|
||||
proxy.FS_hashes.push(fsHash);
|
||||
}
|
||||
if (typeof(cb) === "function") {
|
||||
Realtime.whenRealtimeSyncs(proxyData.realtime, cb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user