td icon indicating copy to clipboard operation
td copied to clipboard

Sticker messages are delayed when a file is being uploaded

Open DarthJahus opened this issue 6 years ago • 2 comments

It seems that sticker messages are included in media upload queue. i.e. If you are sending a file, sticker messages are delayed until the file finishes uploading.

However, sticker files are stored on Telegram servers, so there's no need to queue them. Maybe if the user is sending a sticker file (I've seen some do it, don't know how), that has to be in the queue; but otherwise, they should be treated just like text messages and be sent directly without any delay – and hence avoid some awkward situations if the user is sending large files.

This behaviour has been noticed in both Unigram X (UWP) and Telegram X (Android) applications.

I hope it will be changed.

DarthJahus avatar Oct 07 '18 18:10 DarthJahus

It is done to preserve the total order of sent media files, including stickers. For example, we shouldn't change order of sent photos and videos, even some of them was previously uploaded and can be re-sent immediately. The same reasoning clearly applies to GIFs, music and documents, and it isn't obvious, why we should not preserve relative order of sent stickers to other media messages.

levlam avatar Oct 07 '18 22:10 levlam

I understand, but believe that people use stickers for reactions, just like they would reply with 1 emoji; hence stickers should be considered as other messages and be sent as soon as the user sends them. Of course, your reasoning totally makes sense for images, videos, and files, that have to be sent in the order the user sends them. Also, I'm not pushing, it's your work; but I hope you reconsider it – if you don't, it's okay, tdlib is still great.

Thank you!

DarthJahus avatar Oct 08 '18 10:10 DarthJahus