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.
This commit is contained in:
parent
1334032a89
commit
ed928aa4e3
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue