jsonrpc: show sticker image in quote (#3744)

* jsonrpc: show sticker image in quote

* add pr number to changelog
This commit is contained in:
Simon Laux
2022-11-09 16:43:57 +01:00
committed by GitHub
parent ae4c7b635d
commit f20c3e08d4
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
- add JSON-RPC stdio server `deltachat-rpc-server` and use it for JSON-RPC tests #3695 - add JSON-RPC stdio server `deltachat-rpc-server` and use it for JSON-RPC tests #3695
- update rPGP from 0.8 to 0.9 #3737 - update rPGP from 0.8 to 0.9 #3737
- jsonrpc: typescript client: use npm released deltachat fork of the tiny emitter package #3741 - jsonrpc: typescript client: use npm released deltachat fork of the tiny emitter package #3741
- jsonrpc: show sticker image in quote #3744
### Fixes ### Fixes

View File

@@ -127,6 +127,7 @@ impl MessageObject {
override_sender_name: quote.get_override_sender_name(), override_sender_name: quote.get_override_sender_name(),
image: if quote.get_viewtype() == Viewtype::Image image: if quote.get_viewtype() == Viewtype::Image
|| quote.get_viewtype() == Viewtype::Gif || quote.get_viewtype() == Viewtype::Gif
|| quote.get_viewtype() == Viewtype::Sticker
{ {
match quote.get_file(context) { match quote.get_file(context) {
Some(path_buf) => path_buf.to_str().map(|s| s.to_owned()), Some(path_buf) => path_buf.to_str().map(|s| s.to_owned()),