zevlg / telega.el

GNU Emacs telegram client (unofficial)
https://zevlg.github.io/telega.el/
GNU General Public License v3.0
1.09k stars 85 forks source link

telega-ins: be resilient to missing story/story sender not defined when inserting a webpage #432

Closed seblemaguer closed 11 months ago

seblemaguer commented 11 months ago

Hello,

I faced an error when receiving a link as story_id and story_sender_chat_id are both nil. I don't know if it is due to the use of emacs 29[1], but by simply testing if the value is available in addition to different to 0, it seems to solve the problem

[1] GNU Emacs 29.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-09-01

seblemaguer commented 11 months ago

Thanks, I didn't know this function :D

I replaced the commit to use telega-zerop instead of zerop

zevlg commented 11 months ago

Merged in, thank you!