Bugfixes + Potential iOS Webtoon Reader Fix (#2650)

This commit is contained in:
Joe Milazzo 2024-01-25 11:09:44 -06:00 committed by GitHub
parent 56fa393cf0
commit f660a1cd06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 157 additions and 197 deletions

View file

@ -193,12 +193,17 @@ export class DashboardComponent implements OnInit {
this.cdRef.markForCheck();
}
reloadStream(streamId: number) {
reloadStream(streamId: number, onDeck = false) {
const index = this.streams.findIndex(s => s.id === streamId);
if (index < 0) return;
this.streams[index] = {...this.streams[index]};
console.log('swapped out stream: ', this.streams[index]);
this.cdRef.detectChanges();
if (onDeck) {
// TODO: Need to figure out a better way to refresh just one stream
this.refreshStreams$.next();
this.cdRef.markForCheck();
} else {
this.streams[index] = {...this.streams[index]};
this.cdRef.markForCheck();
}
}
async handleRecentlyAddedChapterClick(item: RecentlyAddedItem) {