deltachat / deltachat-android

Email-based instant messaging for Android.
GNU General Public License v3.0
1.11k stars 146 forks source link

send keyboard-stickers as such #1945

Closed r10s closed 3 years ago

r10s commented 3 years ago

many system keyboards these days have the option to select/handle stickers.

Delta Chat supports these stickers, however, they are sent as images and not as stickers.

we should change them to be sent out as DC_MSG_STICKER, esp. as all UI display stickers nicely meanwhile.

this is eg. how the sticker-selector looks on an motog with android7:

(original feature request in the forum at https://support.delta.chat/t/stickers-simplified/1708/4)

r10s commented 3 years ago

i just had a closer look at the code: the function that needs to be changed seems to be ComposeText::onCommitContent() - assuming, that all kinds of images incoming here should be treated as stickers, we should directly send the sticker-message out instead of staging it using mediaListener.onMediaSelected().