@knocklabs/client
Advanced tools
Comparing version
@@ -880,7 +880,19 @@ "use strict"; | ||
var itemsToUpdate = normalizedItems.filter(function (item) { | ||
if (type === "seen") return item.seen_at === null; | ||
if (type === "unseen") return item.seen_at !== null; | ||
if (type === "read") return item.read_at === null; | ||
if (type === "unread") return item.read_at !== null; | ||
return true; | ||
switch (type) { | ||
case "seen": | ||
return item.seen_at === null; | ||
case "unseen": | ||
return item.seen_at !== null; | ||
case "read": | ||
case "interacted": | ||
return item.read_at === null; | ||
case "unread": | ||
return item.read_at !== null; | ||
default: | ||
return true; | ||
} | ||
}); // Tnis is a hack to determine the direction of whether we're | ||
@@ -887,0 +899,0 @@ // adding or removing from the badge count |
@@ -607,7 +607,19 @@ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator"; | ||
var itemsToUpdate = normalizedItems.filter(item => { | ||
if (type === "seen") return item.seen_at === null; | ||
if (type === "unseen") return item.seen_at !== null; | ||
if (type === "read") return item.read_at === null; | ||
if (type === "unread") return item.read_at !== null; | ||
return true; | ||
switch (type) { | ||
case "seen": | ||
return item.seen_at === null; | ||
case "unseen": | ||
return item.seen_at !== null; | ||
case "read": | ||
case "interacted": | ||
return item.read_at === null; | ||
case "unread": | ||
return item.read_at !== null; | ||
default: | ||
return true; | ||
} | ||
}); // Tnis is a hack to determine the direction of whether we're | ||
@@ -614,0 +626,0 @@ // adding or removing from the badge count |
{ | ||
"name": "@knocklabs/client", | ||
"version": "0.8.12", | ||
"version": "0.8.13", | ||
"description": "The clientside library for interacting with Knock", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/knocklabs/knock-client-js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
281039
0.17%3030
0.53%