From 43d62aa8c1511920980a44d2943d1650a0da687a Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Wed, 21 Jul 2021 16:43:57 +0200 Subject: [PATCH] Use more performant getMembersCount to decide to hide or show sender --- src/components/structures/MessagePanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/MessagePanel.tsx b/src/components/structures/MessagePanel.tsx index 4ca38266dd..c014585529 100644 --- a/src/components/structures/MessagePanel.tsx +++ b/src/components/structures/MessagePanel.tsx @@ -712,7 +712,7 @@ export default class MessagePanel extends React.Component { 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 ret.push(