Support for iOS theme

This commit is contained in:
Scott Nonnenberg 2018-04-12 12:21:37 -07:00
parent 644bc9e6fb
commit 087dd0f758
No known key found for this signature in database
GPG key ID: 5F82280C35134661
7 changed files with 226 additions and 19 deletions

View file

@ -400,29 +400,30 @@
});
}
const OUR_NUMBER = textsecure.storage.user.getNumber();
const { author } = quote;
const contact = ConversationController.get(author);
const authorTitle = contact ? contact.getTitle() : author;
const authorProfileName = contact ? contact.getProfileName() : null;
const authorColor = contact ? contact.getColor() : 'grey';
const isFromMe = contact ? contact.id === OUR_NUMBER : false;
const isIncoming = this.model.isIncoming();
const quoterContact = this.model.getContact();
const quoterAuthorColor = quoterContact ? quoterContact.getColor() : null;
const props = {
authorTitle,
authorProfileName,
attachments: quote.attachments && quote.attachments.map(processAttachment),
authorColor,
authorProfileName,
authorTitle,
isFromMe,
isIncoming,
quoterAuthorColor,
openQuotedMessage: () => {
onClick: () => {
const { quotedMessage } = this.model;
if (quotedMessage) {
this.trigger('scroll-to-message', { id: quotedMessage.id });
}
},
text: quote.text,
attachments: quote.attachments && quote.attachments.map(processAttachment),
};
if (!this.replyView) {