Reduce unnecessary or overly verbose logging

This commit is contained in:
Scott Nonnenberg 2021-02-04 11:39:07 -08:00 committed by GitHub
parent 850482ea70
commit 089e2864b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 16 additions and 17 deletions

View file

@ -2206,9 +2206,16 @@ export class ConversationModel extends window.Backbone.Model<
return undefined;
}
const emoji = this.get('aboutEmoji');
const text = this.get('about');
if (!emoji) {
return text;
}
return window.i18n('message--getNotificationText--text-with-emoji', {
text: this.get('about'),
emoji: this.get('aboutEmoji'),
text,
emoji,
});
}
@ -2743,10 +2750,6 @@ export class ConversationModel extends window.Backbone.Model<
);
}
window.log.warn(
'getMembers: Group conversation had neither membersV2 nor members'
);
return [];
}