Update Inter to 3.19

This commit is contained in:
Fedor Indutny 2022-08-31 12:57:21 -07:00 committed by GitHub
parent 206f65e67d
commit 2b5f0ffc10
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 28 additions and 16 deletions

View file

@ -4891,12 +4891,13 @@ export class ConversationModel extends window.Backbone
});
}
getTitle(): string {
getTitle({ isShort = false }: { isShort?: boolean } = {}): string {
if (isDirectConversation(this.attributes)) {
const username = this.get('username');
return (
this.get('name') ||
(isShort ? this.get('profileName') : undefined) ||
this.getProfileName() ||
this.getNumber() ||
(username && window.i18n('at-username', { username })) ||