Rename ConversationModel#getAvatarPath for clarity

This commit is contained in:
Evan Hahn 2021-04-26 09:31:36 -05:00 committed by Scott Nonnenberg
parent 3ce39a6316
commit 664865c9f1
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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;