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 })) ||

View file

@ -841,7 +841,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
// if it's not selfAuthor and there's no incoming contact,
// it might be a group notification, so we return undefined
return selfAuthor ?? this.getIncomingContact()?.getTitle();
return selfAuthor ?? this.getIncomingContact()?.getTitle({ isShort: true });
}
getNotificationText(): string {

View file

@ -40,7 +40,7 @@ async function drawImage(
async function getFont(text: string): Promise<string> {
const font = new window.FontFace(
'Inter',
'url("fonts/inter-v3.10/Inter-Regular.woff2")'
'url("fonts/inter-v3.19/Inter-Regular.woff2")'
);
await font.load();