You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Use more performant getMembersCount to decide to hide or show sender
This commit is contained in:
@ -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(
|
||||||
|
Reference in New Issue
Block a user