zevlg / telega.el

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

Some images are not shown in daemon. #296

Closed Vonfry closed 3 years ago

Vonfry commented 3 years ago

According manual, some variables are set as follows:

  :hook
  (server-after-make-frame .
    (lambda (&rest _)
      (dolist (symbl '(telega-use-images telega-emoji-font-family
                       telega-emoji-use-images telega-online-status-function))
        (set symbl (eval (car (get symbl 'standard-value)))))))

Telega Setup

OS: NixOS 21.05 (Okapi) Emacs: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.16.0) Telega: telega v0.7.024 (TDLib v1.7.0) (telega-server v0.7.5) MELPA: 0.7.24

Current Behavior

Now, the inline images in chatbuf can be displayed. But so are not the users' and chat groups' profile photos. They are ascii characters as well.

Possible Solution

I cannot find an option to set these. If there is one, it should be added into document.

zevlg commented 3 years ago

svg support by Emacs is required. Recompile your Emacs with svg support

svg is heavily utilized by telega

Vonfry commented 3 years ago

If I run emacs without daemon under x11, there is no problem. All images can be displayed. So it isn't caused by lacking requirements.

On 2021年6月26日 at 13:24:45, Zajcev Evgeny @.**@.)) wrote:

svg support by Emacs is required. Recompile your Emacs with svg support

svg is heavily utilized by telega

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub(https://github.com/zevlg/telega.el/issues/296#issuecomment-868950514), or unsubscribe(https://github.com/notifications/unsubscribe-auth/AA2BI767T5R6DI67SRKHM4DTUVQB3ANCNFSM47K66IXQ).

Vonfry commented 3 years ago

image

image

zevlg commented 3 years ago

Ah, Emacs as daemon. You need to set some variables explicitly before loading telega

Setting telega-use-images before loading telega is essential, because autodetected values for some other variables (including telega-chat-show-avatars) depends on the telega-use-images value.

Vonfry commented 3 years ago

Thanks. It is better If we can make other variables self-adapting with changed telega-use-images