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

@@ -646,6 +646,7 @@ pub fn msgtype_has_file(msgtype: Viewtype) -> bool {
match msgtype {
Viewtype::Image => true,
Viewtype::Gif => true,
Viewtype::Sticker => true,
Viewtype::Audio => true,
Viewtype::Voice => true,
Viewtype::Video => true,