Change default collection names from 'Default' to be descriptive

A step towards fixing https://github.com/etesync/android/issues/118
master
Tom Hacohen 4 years ago
parent 64753586e3
commit 7fe2cd1f60

@ -117,11 +117,24 @@ export default withRouter(function SyncGate(props: RouteComponentProps<{}> & Pro
return;
}
['ADDRESS_BOOK', 'CALENDAR', 'TASKS'].forEach((collectionType) => {
[
{
type: 'ADDRESS_BOOK',
name: 'My Contacts',
},
{
type: 'CALENDAR',
name: 'My Calendar',
},
{
type: 'TASKS',
name: 'My Tasks',
},
].forEach((collectionDesc) => {
const collection = new EteSync.CollectionInfo();
collection.uid = EteSync.genUid();
collection.type = collectionType;
collection.displayName = 'Default';
collection.type = collectionDesc.type;
collection.displayName = collectionDesc.name;
const journal = new EteSync.Journal({ uid: collection.uid });
const cryptoManager = new EteSync.CryptoManager(etesync.encryptionKey, collection.uid);

Loading…
Cancel
Save