Skip to content

Commit

Permalink
show webxdc icon in quote (#2935)
Browse files Browse the repository at this point in the history
needs a core with deltachat/deltachat-core-rust#3651 merged
  • Loading branch information
Simon-Laux authored Oct 15, 2022
1 parent f956413 commit 802b135
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- add button to clear chat history (delete all messages of a chat)
- add recently seen indicator
- add jump down button
- show webxdc icon in quote

## Changed
- start migrating to jsonrpc api
Expand Down
7 changes: 7 additions & 0 deletions scss/message/_message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,13 @@
width: var(--quote-img-size);
margin-left: 6px;
}

img.quoted-webxdc-icon {
height: var(--quote-img-size);
width: var(--quote-img-size);
margin-left: 6px;
border-radius: 7%;
}
}

.quoted-text,
Expand Down
6 changes: 6 additions & 0 deletions src/renderer/components/message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,12 @@ export const Quote = ({
{hasMessage && quote.image && (
<img className='quoted-image' src={quote.image} />
)}
{hasMessage && quote.viewType == 'Webxdc' && (
<img
className='quoted-webxdc-icon'
src={runtime.getWebxdcIconURL(quote.messageId)}
/>
)}
</div>
</div>
)
Expand Down

0 comments on commit 802b135

Please sign in to comment.