feat: mark as watched button in feed (#3746)

* feat: add mark as watched/unwatched button

* fix: remove from trending page and hide if watch history is diabled

remove the button from trending page because it only works in feed page.

* fix: missing thumbnail url in watch_history  when using mark as watched

* fix: missing uploadername in watch_history when using mark as watched

* refactor: make mark as watched consistent with other app elements

* refactor: simplify setting "watched" property for videos

---------

Co-authored-by: Bnyro <bnyro@tutanota.com>
This commit is contained in:
HiImKobeAnd
2025-01-07 13:50:53 +01:00
committed by GitHub
parent 56bcc1b90f
commit 676dbef9b8
4 changed files with 60 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ const mixin = {
var request = store.get(video.url.substr(-11));
request.onsuccess = function (event) {
if (event.target.result) {
video.watched = true;
video.watched = event.target.result.currentTime != 0;
video.currentTime = event.target.result.currentTime;
}
};