zhukov / webogram

Telegram web application, GPL v3
https://web.telegram.org
GNU General Public License v3.0
7.94k stars 2.36k forks source link

@gif showing "mp4.mp4" #1985

Open ZiTAL opened 4 years ago

ZiTAL commented 4 years ago

@gif showing "mp4.mp4"

2020-06-25-12-51-58

simian-typist commented 3 years ago

Same here, and for several of my friends. Can add screenshots if you want.

sabas commented 3 years ago

Same, usually those searched via the gif inline command

moog commented 3 years ago

I was debugging this along with @flyingluscas and it seems that the problem occurs when Telegram API doesn't have a thumb for the GIF, so the client shows the text "mp4.mp4". Removing these lines, the client shows a GIF button on an empty space:

image

IMHO an easy alternative, and better than "mp4.mp4", is to show just the GIF button. To solve this issue in the best way, I suggest autoplay GIFs that are being shown on the screen. What do you think?

teno30 commented 3 years ago

1596888600542

lezioul commented 3 years ago

I was debugging this along with @flyingluscas and it seems that the problem occurs when Telegram API doesn't have a thumb for the GIF, so the client shows the text "mp4.mp4". Removing these lines, the client shows a GIF button on an empty space:

image

IMHO an easy alternative, and better than "mp4.mp4", is to show just the GIF button. To solve this issue in the best way, I suggest autoplay GIFs that are being shown on the screen. What do you think?

Thx for the workaround. I think autoplay would be a great alternative too, only if it can be enabled/disabled in settings.