Use more performant getMembersCount to decide to hide or show sender

pull/21833/head
Germain Souquet 2021-07-21 16:43:57 +02:00
parent e5bc5a933e
commit 43d62aa8c1
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ export default class MessagePanel extends React.Component<IProps, IState> {
const callEventGrouper = this.callEventGroupers.get(mxEv.getContent().call_id); const callEventGrouper = this.callEventGroupers.get(mxEv.getContent().call_id);
const isDirectMessage = this.props.room?.getJoinedMemberCount() <= 2; const isDirectMessage = this.props.room?.getMembersCount() <= 2;
// use txnId as key if available so that we don't remount during sending // use txnId as key if available so that we don't remount during sending
ret.push( ret.push(