Commit aba4fece authored by Mark Harding's avatar Mark Harding

(fix): check visibility needs to be bound

No related merge requests found
Pipeline #84973095 passed with stages
in 47 minutes
......@@ -61,10 +61,9 @@ export class ActivityAnalyticsOnViewService implements OnDestroy {
}
});
this.scroll$ = this.scroll.listenForView().subscribe(this.checkVisibility);
// Do a check for the initial posts
this.checkVisibility();
this.scroll$ = this.scroll.listenForView().subscribe(() => {
this.checkVisibility();
});
}
checkVisibility() {
......
......@@ -239,6 +239,8 @@ export class Activity implements OnInit {
this.activity.time_created || Math.floor(Date.now() / 1000);
this.allowComments = this.activity.allow_comments;
this.activityAnalyticsOnViewService.checkVisibility(); // perform check
}
getOwnerIconTime() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment