Update Inter to 3.19
This commit is contained in:
parent
206f65e67d
commit
2b5f0ffc10
22 changed files with 28 additions and 16 deletions
|
@ -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 })) ||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue