majn / telegram-purple

Adds support for Telegram to Pidgin, Adium, Finch and other Libpurple based messengers.
GNU General Public License v2.0
735 stars 81 forks source link

fallback to ascii emoji when stickers are disabled #494

Open realies opened 5 years ago

realies commented 5 years ago

would be especially useful in bitlbee where sticker messages are empty

BenWiederhake commented 5 years ago

Awesome idea! As a starting point, you probably want to start in the file tgp-msg.c, around line 457, in function tgp_msg_sticker_display, where it says:

text = g_strdup_printf (_("%s sent a sticker."), txt_user);

Maybe you also want to look at the places where it is used, so you can pass more meta-information into tgp_msg_sticker_display. Most importantly, that seems to be tgp-msg.c:633 and tgp-msg.c:685.

Please do your development work on the branch dev-1.4.2.

realies commented 5 years ago

thanks for the guidance, haven't got any experience writing in C, hope to get some at some point ⏳