mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-23 01:48:13 +01:00
Update to new design for avatars: individual/group icons/colors
And two initials.
This commit is contained in:
@@ -25,9 +25,6 @@
|
||||
this.contactView = null;
|
||||
}
|
||||
|
||||
const avatar = this.model.getAvatar();
|
||||
const avatarPath = avatar && avatar.url;
|
||||
const color = avatar && avatar.color;
|
||||
const isMe = this.ourNumber === this.model.id;
|
||||
|
||||
this.contactView = new Whisper.ReactWrapperView({
|
||||
@@ -35,8 +32,8 @@
|
||||
Component: window.Signal.Components.ContactListItem,
|
||||
props: {
|
||||
isMe,
|
||||
color,
|
||||
avatarPath,
|
||||
color: this.model.getColor(),
|
||||
avatarPath: this.model.getAvatarPath(),
|
||||
phoneNumber: this.model.getNumber(),
|
||||
name: this.model.getName(),
|
||||
profileName: this.model.getProfileName(),
|
||||
|
||||
@@ -145,8 +145,6 @@
|
||||
});
|
||||
|
||||
const getHeaderProps = () => {
|
||||
const avatar = this.model.getAvatar();
|
||||
const avatarPath = avatar ? avatar.url : null;
|
||||
const expireTimer = this.model.get('expireTimer');
|
||||
const expirationSettingName = expireTimer
|
||||
? Whisper.ExpirationTimerOptions.getName(expireTimer || 0)
|
||||
@@ -158,7 +156,7 @@
|
||||
phoneNumber: this.model.getNumber(),
|
||||
profileName: this.model.getProfileName(),
|
||||
color: this.model.getColor(),
|
||||
avatarPath,
|
||||
avatarPath: this.model.getAvatarPath(),
|
||||
isVerified: this.model.isVerified(),
|
||||
isMe: this.model.isMe(),
|
||||
isGroup: !this.model.isPrivate(),
|
||||
@@ -1401,6 +1399,7 @@
|
||||
}
|
||||
|
||||
const message = new Whisper.Message({
|
||||
conversationId: this.model.id,
|
||||
quote: this.quote,
|
||||
});
|
||||
message.quotedMessage = this.quotedMessage;
|
||||
|
||||
Reference in New Issue
Block a user