diff --git a/src/components/view/http/http-details-pane.tsx b/src/components/view/http/http-details-pane.tsx index 971c80e6..6202f498 100644 --- a/src/components/view/http/http-details-pane.tsx +++ b/src/components/view/http/http-details-pane.tsx @@ -469,6 +469,7 @@ export class HttpDetailsPane extends React.Component<{ isPaidUser={this.props.accountStore!.isPaidUser} filenamePrefix={filenamePrefix} messages={exchange.messages} + onClearMessages={() => exchange.downstream.cleanupMessages()} />; } diff --git a/src/components/view/stream-message-list-card.tsx b/src/components/view/stream-message-list-card.tsx index 719a6694..c328aa9a 100644 --- a/src/components/view/stream-message-list-card.tsx +++ b/src/components/view/stream-message-list-card.tsx @@ -45,6 +45,7 @@ export class StreamMessageListCard extends React.Component, editorNode: portals.HtmlPortalNode + onClearMessages?: () => void, }> { @observable @@ -67,6 +68,7 @@ export class StreamMessageListCard extends React.Component + { onClearMessages && + } { streamLabel && msg.cleanup()); this.messages.length = 0; } + + cleanup() { + super.cleanup(); + this.cleanupMessages(); + } } \ No newline at end of file