Rename ConversationModel#getAvatarPath for clarity
This commit is contained in:
parent
3ce39a6316
commit
664865c9f1
2 changed files with 3 additions and 3 deletions
|
@ -1345,7 +1345,7 @@ export class ConversationModel extends window.Backbone.Model<
|
|||
areWeAdmin: this.areWeAdmin(),
|
||||
canChangeTimer: this.canChangeTimer(),
|
||||
canEditGroupInfo: this.canEditGroupInfo(),
|
||||
avatarPath: this.getAvatarPath()!,
|
||||
avatarPath: this.getAbsoluteAvatarPath(),
|
||||
color,
|
||||
discoveredUnregisteredAt: this.get('discoveredUnregisteredAt'),
|
||||
draftBodyRanges,
|
||||
|
@ -4929,7 +4929,7 @@ export class ConversationModel extends window.Backbone.Model<
|
|||
return migrateColor(this.get('color'));
|
||||
}
|
||||
|
||||
getAvatarPath(): string | undefined {
|
||||
getAbsoluteAvatarPath(): string | undefined {
|
||||
const avatar = this.isMe()
|
||||
? this.get('profileAvatar') || this.get('avatar')
|
||||
: this.get('avatar') || this.get('profileAvatar');
|
||||
|
|
|
@ -888,7 +888,7 @@ export class MessageModel extends window.Backbone.Model<MessageAttributesType> {
|
|||
|
||||
const authorColor = contactModel ? contactModel.getColor() : undefined;
|
||||
const authorAvatarPath = contactModel
|
||||
? contactModel.getAvatarPath()
|
||||
? contactModel.getAbsoluteAvatarPath()
|
||||
: undefined;
|
||||
|
||||
const expirationLength = this.get('expireTimer') * 1000;
|
||||
|
|
Loading…
Reference in a new issue