mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Run getReadAvatars() only when neccessary
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
43c236e8a5
commit
a7b1c5dfe0
1 changed files with 1 additions and 2 deletions
|
@ -861,8 +861,6 @@ export default class EventTile extends React.Component {
|
|||
permalink = this.props.permalinkCreator.forEvent(this.props.mxEvent.getId());
|
||||
}
|
||||
|
||||
const readAvatars = this.getReadAvatars();
|
||||
|
||||
let avatar;
|
||||
let sender;
|
||||
let avatarSize;
|
||||
|
@ -993,6 +991,7 @@ export default class EventTile extends React.Component {
|
|||
|
||||
let msgOption;
|
||||
if (this.props.showReadReceipts) {
|
||||
const readAvatars = this.getReadAvatars();
|
||||
msgOption = (
|
||||
<div className="mx_EventTile_msgOption">
|
||||
{ readAvatars }
|
||||
|
|
Loading…
Reference in a new issue