add sticker type (#653)

* add sticker type

this pr adds the message type 'sticker'.
stickers are handled as normal images
but tagged with the header `Chat-Content: sticker`
it's up to the ui to render these stickers appropriate.

* cargo fmt
This commit is contained in:
björn petersen
2019-09-30 20:55:27 +02:00
committed by Jikstra
parent ab2ef1e1e4
commit c376de9b5e
7 changed files with 32 additions and 1 deletions

View File

@@ -109,6 +109,8 @@ pub enum StockMessage {
MsgLocationDisabled = 65,
#[strum(props(fallback = "Location"))]
Location = 66,
#[strum(props(fallback = "Sticker"))]
Sticker = 67,
}
impl StockMessage {