Fix:Sync audiobook progress

This commit is contained in:
advplyr 2022-01-05 19:07:32 -06:00
parent 4778d09501
commit 8ee4751cac
3 changed files with 14 additions and 12 deletions

View file

@ -86,7 +86,7 @@ class UserAudiobookData {
update(payload) {
var hasUpdates = false
for (const key in payload) {
if (payload[key] !== this[key]) {
if (this[key] !== undefined && payload[key] !== this[key]) {
if (key === 'isRead') {
if (!payload[key]) { // Updating to Not Read - Reset progress and current time
this.finishedAt = null