Responding to feedback on the updated visuals (#2549)

* Conversation List Item: timestamp bold only when convo has unread

* Preserve the positioning of overlays on re-entry into convo

* ConversationListItem: Handle missing and broken thumbnails

* Shorten timestamp in left pane for better Android consistency

* Update convo last updated if last was expire timer change

But not if it was from a sync instead of from you or from a contact.

* Make links in quotes the same color as the text

* MediaGridItem: Update placeholder icon colors for dark theme

* Ensure turning off timer shows 'Timer set to off' in left pane

* ConversationListItem: Show unread count in blue circle

* Add one pixel margin to blue indicator for text alignment

* Ensure replies to voice message can bet sent successfully
This commit is contained in:
Scott Nonnenberg 2018-07-20 16:37:57 -07:00 committed by GitHub
parent 60d56cf7e0
commit 643739f65d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 348 additions and 38 deletions

View file

@ -207,7 +207,7 @@
...this.format(),
lastUpdated: this.get('timestamp'),
hasUnread: Boolean(this.get('unreadCount')),
unreadCount: this.get('unreadCount') || 0,
isSelected: this.isSelected,
lastMessage: {
@ -795,7 +795,9 @@
return {
contentType,
fileName,
// Our protos library complains about this field being undefined, so we
// force it to null
fileName: fileName || null,
thumbnail: thumbnail
? {
...(await loadAttachmentData(thumbnail)),

View file

@ -193,7 +193,7 @@
const { expireTimer } = this.get('expirationTimerUpdate');
return i18n(
'timerSetTo',
Whisper.ExpirationTimerOptions.getAbbreviated(expireTimer)
Whisper.ExpirationTimerOptions.getAbbreviated(expireTimer || 0)
);
}
if (this.isKeyChange()) {

View file

@ -752,6 +752,10 @@
},
focusMessageField() {
if (this.panels && this.panels.length) {
return;
}
this.$messageField.focus();
},
@ -1286,6 +1290,7 @@
if (message) {
const quote = await this.model.makeQuote(this.quotedMessage);
console.log('DEBUG', { quote });
this.quote = quote;
this.focusMessageFieldAndClearDisabled();