Track and sync unread messages
// FREEBIE
This commit is contained in:
parent
1be45f3775
commit
1f897f32b7
4 changed files with 78 additions and 7 deletions
|
@ -134,6 +134,16 @@
|
|||
transaction.db.createObjectStore("debug");
|
||||
next();
|
||||
}
|
||||
},
|
||||
{
|
||||
version: "8.0",
|
||||
migrate: function(transaction, next) {
|
||||
console.log('migration 8.0');
|
||||
console.log('creating unread message index');
|
||||
var conversations = transaction.objectStore('messages');
|
||||
conversations.createIndex('unread', ['conversationId', 'unread'], { unique: false });
|
||||
next();
|
||||
}
|
||||
}
|
||||
];
|
||||
}());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue