themify the typing bubble

pull/1362/head
Audric Ackermann 5 years ago
parent 4578c635a6
commit 4a86c81edf
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -701,9 +701,13 @@
const { sender } = mostRecent; const { sender } = mostRecent;
const contact = ConversationController.getOrCreate(sender, 'private'); const contact = ConversationController.getOrCreate(sender, 'private');
// we need the opposite theme
const color =
window.Events.getThemeSetting() === 'light' ? 'dark' : 'light';
const props = { const props = {
...contact.format(), ...contact.format(),
conversationType: this.model.isPrivate() ? 'direct' : 'group', conversationType: this.model.isPrivate() ? 'direct' : 'group',
color,
}; };
if (this.typingBubbleView) { if (this.typingBubbleView) {

@ -58,7 +58,7 @@ export class TypingBubble extends React.Component<Props> {
)} )}
> >
<div className="module-message__typing-container"> <div className="module-message__typing-container">
<TypingAnimation color="light" i18n={i18n} /> <TypingAnimation color={color} i18n={i18n} />
</div> </div>
{this.renderAvatar()} {this.renderAvatar()}
</div> </div>

Loading…
Cancel
Save