This fixes a bug that sometimes boosted statuses being hidden on scrolling.
Previously, we've attached IntersectionObserver twice for boosted statuses:
wrapper Status and wrapped Status. This will call intersection handler twice,
so this may results race condition...probably.
render () {
let media = null;
let statusAvatar;
- const { status, account, ...other } = this.props;
+
+ // Exclude intersectionObserverWrapper from `other` variable
+ // because intersection is managed in here.
+ const { status, account, intersectionObserverWrapper, ...other } = this.props;
const { isExpanded, isIntersecting, isHidden } = this.state;
if (status === null) {