Skip to content

Commit 7d7a245

Browse files
committed
docs: That Viewtype::Sticker may be changed to Image and how to disable that (#6352)
1 parent 0cadfe3 commit 7d7a245

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

deltachat-ffi/deltachat.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5393,6 +5393,8 @@ int64_t dc_lot_get_timestamp (const dc_lot_t* lot);
53935393

53945394
/**
53955395
* Message containing a sticker, similar to image.
5396+
* NB: When sending, the message viewtype may be changed to `Image` by some heuristics like checking
5397+
* for transparent pixels.
53965398
* If possible, the UI should display the image without borders in a transparent way.
53975399
* A click on a sticker will offer to install the sticker set in some future.
53985400
*/

deltachat-jsonrpc/src/api/types/message.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ pub enum MessageViewtype {
273273
Gif,
274274

275275
/// Message containing a sticker, similar to image.
276+
/// NB: When sending, the message viewtype may be changed to `Image` by some heuristics like
277+
/// checking for transparent pixels. Use `Message::force_sticker()` to disable them.
278+
///
276279
/// If possible, the ui should display the image without borders in a transparent way.
277280
/// A click on a sticker will offer to install the sticker set in some future.
278281
Sticker,

src/message.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,6 +2094,9 @@ pub enum Viewtype {
20942094
Gif = 21,
20952095

20962096
/// Message containing a sticker, similar to image.
2097+
/// NB: When sending, the message viewtype may be changed to `Image` by some heuristics like
2098+
/// checking for transparent pixels. Use `Message::force_sticker()` to disable them.
2099+
///
20972100
/// If possible, the ui should display the image without borders in a transparent way.
20982101
/// A click on a sticker will offer to install the sticker set in some future.
20992102
Sticker = 23,

0 commit comments

Comments
 (0)