diff --git a/src/pages/home/report/ReportActionsView.js b/src/pages/home/report/ReportActionsView.js index 0cab5dc1954c..dae0bb5e4f02 100644 --- a/src/pages/home/report/ReportActionsView.js +++ b/src/pages/home/report/ReportActionsView.js @@ -192,6 +192,10 @@ class ReportActionsView extends React.Component { this.keyboardEvent.remove(); } + // We must cancel the debounce function so that we do not call the function when switching to a new chat before + // the previous one has finished loading completely. + this.recordTimeToMeasureItemLayout.cancel(); + AppState.removeEventListener('change', this.onVisibilityChange); _.each(this.timers, timer => clearTimeout(timer));