Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

pagedlist: fix refresh on wrapped components

Saúl Ibarra Corretgé49f60109053b
diff --git a/react/features/base/react/components/native/PagedList.js b/react/features/base/react/components/native/PagedList.js
index bad5870b44..47d9359a36 100644
--- a/react/features/base/react/components/native/PagedList.js
+++ b/react/features/base/react/components/native/PagedList.js
@@ -147,7 +147,10 @@ class PagedList extends Component<Props, State> {
let component;
if (selectedPage && (component = selectedPage.component)) {
- const { refresh } = component;
+ // react-i18n / react-redux wrap components and thus we cannot access
+ // the wrapped component's static methods directly.
+ const component_ = component.WrappedComponent || component;
+ const { refresh } = component_;
refresh.call(component, this.props.dispatch, isInteractive);
}