mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Fix stale recsys and fix watchman uncaught promise when videoPlayer is not initialized (#7014)
* do not set stale recsys id * no watchman send if videoplay not initialized
This commit is contained in:
parent
03d56d1445
commit
91ef5456de
2 changed files with 5 additions and 1 deletions
|
@ -120,6 +120,10 @@ async function sendAndResetWatchmanData() {
|
||||||
return 'Can only be used with a user id';
|
return 'Can only be used with a user id';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!videoPlayer) {
|
||||||
|
return 'Video player not initialized';
|
||||||
|
}
|
||||||
|
|
||||||
let timeSinceLastIntervalSend = new Date() - lastSentTime;
|
let timeSinceLastIntervalSend = new Date() - lastSentTime;
|
||||||
lastSentTime = new Date();
|
lastSentTime = new Date();
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ const recsys = {
|
||||||
uid: userId, // selectUser
|
uid: userId, // selectUser
|
||||||
claimId: claimId,
|
claimId: claimId,
|
||||||
pageLoadedAt: Date.now(),
|
pageLoadedAt: Date.now(),
|
||||||
recsysId: makeSelectRecommendedRecsysIdForClaimId(claimId)(state) || recsysId,
|
recsysId: null,
|
||||||
recClaimIds: [],
|
recClaimIds: [],
|
||||||
recClickedVideoIdx: [],
|
recClickedVideoIdx: [],
|
||||||
events: [],
|
events: [],
|
||||||
|
|
Loading…
Add table
Reference in a new issue