Skip to content

Commit 0c99604

Browse files
EvanHahn-Signaljosh-signal
authored andcommitted
Minor: use clearTimeout instead of clearInterval in <Message>
1 parent 116ff74 commit 0c99604

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ts/components/conversation/Message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ export class Message extends React.PureComponent<Props, State> {
370370

371371
public componentWillUnmount(): void {
372372
if (this.selectedTimeout) {
373-
clearInterval(this.selectedTimeout);
373+
clearTimeout(this.selectedTimeout);
374374
}
375375
if (this.expirationCheckInterval) {
376376
clearInterval(this.expirationCheckInterval);

0 commit comments

Comments
 (0)