From 802b1358f76d1586e9c63bcf1c452e8800d84f1c Mon Sep 17 00:00:00 2001 From: Simon Laux Date: Sat, 15 Oct 2022 23:31:52 +0200 Subject: [PATCH] show webxdc icon in quote (#2935) needs a core with https://github.com/deltachat/deltachat-core-rust/pull/3651 merged --- CHANGELOG.md | 1 + scss/message/_message.scss | 7 +++++++ src/renderer/components/message/Message.tsx | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7804071070..764c989612 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/scss/message/_message.scss b/scss/message/_message.scss index cfe8567faf..df94512f08 100644 --- a/scss/message/_message.scss +++ b/scss/message/_message.scss @@ -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, diff --git a/src/renderer/components/message/Message.tsx b/src/renderer/components/message/Message.tsx index a9a2ff0605..a6d7470450 100644 --- a/src/renderer/components/message/Message.tsx +++ b/src/renderer/components/message/Message.tsx @@ -546,6 +546,12 @@ export const Quote = ({ {hasMessage && quote.image && ( )} + {hasMessage && quote.viewType == 'Webxdc' && ( + + )} )