@amityco/ts-sdk-react-native 7.0.2-3cbb4fc.0 → 7.0.3-d7a9877.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -31,12 +31,15 @@ export class AnalyticsEventCapturer {
|
|
|
31
31
|
}) {
|
|
32
32
|
const now = new Date();
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
// Get the recent view date (if any)
|
|
35
|
+
const recentViewedDate = isHighPriority
|
|
36
|
+
? this._recentHighPriorityViewed[uniqueId]
|
|
37
|
+
: this._recentViewed[uniqueId];
|
|
38
|
+
|
|
39
|
+
// If this is the first view, always allow it
|
|
40
|
+
if (!recentViewedDate) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
40
43
|
|
|
41
44
|
const timeDiff = now.getTime() - recentViewedDate.getTime();
|
|
42
45
|
|