mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Fix getUnread query
Booleans are not valid keys in indexeddb. https://www.w3.org/TR/IndexedDB/#dfn-valid-key // FREEBIE
This commit is contained in:
@@ -56,9 +56,9 @@
|
||||
return unreadMessages.fetch({
|
||||
index: {
|
||||
// 'unread' index
|
||||
name: 'unread',
|
||||
lower: [conversationId, true],
|
||||
upper: [conversationId, true]
|
||||
name : 'unread',
|
||||
lower : [conversationId],
|
||||
upper : [conversationId, Number.MAX_VALUE],
|
||||
}
|
||||
}).always(function() {
|
||||
resolve(unreadMessages);
|
||||
|
||||
Reference in New Issue
Block a user