fix disappearing [you] badge in topic members

This commit is contained in:
or-else
2020-04-15 15:55:40 +03:00
parent c0a3ba6a92
commit 52c1016b45
5 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ class ContactList extends React.Component {
/>);
} else {
// Normal contact
const key = c.topic ? c.topic : c.user;
const key = this.props.showMode ? c.user : (c.topic || c.user);
// If filter function is provided, filter out the items
// which don't satisfy the condition.
if (this.props.filterFunc && this.props.filter) {
@@ -60,7 +60,7 @@ class ContactList extends React.Component {
(this.props.topicSelected === key);
const badges = [];
if (this.props.showMode) {
if (key === this.props.myUserId) {
if (key == this.props.myUserId) {
badges.push({name: formatMessage(messages.badge_you), color: 'green'});
}
if (c.acs && c.acs.isOwner()) {