From 76ad93b9370e2e6922b54f2268a0d4f9ebe3dc9e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 26 Feb 2021 22:25:50 -0700 Subject: [PATCH] Put speed holes in the code We can make read receipts more efficient (and avoid double-animation) by using `PureComponent` which no-ops useless updates for us. --- src/components/views/rooms/ReadReceiptMarker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/ReadReceiptMarker.js b/src/components/views/rooms/ReadReceiptMarker.js index f5c676b841..8b2f5d27b5 100644 --- a/src/components/views/rooms/ReadReceiptMarker.js +++ b/src/components/views/rooms/ReadReceiptMarker.js @@ -32,7 +32,7 @@ try { } catch (e) { } -export default class ReadReceiptMarker extends React.Component { +export default class ReadReceiptMarker extends React.PureComponent { static propTypes = { // the RoomMember to show the RR for member: PropTypes.object,