Add index on conversation type

So we can load only groups or only contacts.

This changes the schema and requires you to delete your database to
re-run the migration.
pull/749/head
lilia 10 years ago
parent 1334032a89
commit ed928aa4e3

@ -32,6 +32,7 @@
var conversations = transaction.db.createObjectStore("conversations");
conversations.createIndex("inbox", "active_at", { unique: false });
conversations.createIndex("group", "members", { unique: false, multiEntry: true });
conversations.createIndex("type", "type", { unique: false });
next();
}
}

Loading…
Cancel
Save