Skip to content

Commit 2e6bb2e

Browse files
committed
Change: (ement-room-list-avatar-generation) Rename option
1 parent 57ac200 commit 2e6bb2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.org

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ Ement.el doesn't support encrypted rooms natively, but it can be used transparen
304304
+ Command ~ement-room-download-file~, which downloads the file in the event at point (for image, audio, video, and file messages). ([[https://github.com/alphapapa/ement.el/pull/323][#323]]. Thanks to [[https://github.com/viiru-][Arto Jantunen]].)
305305
+ Customization groups for faces. (Thanks to [[https://github.com/phil-s][Phil Sainty]].)
306306
+ Option ~ement-room-hide-redacted-message-content~, which hides the content of redacted messages by default. It may be disabled to keep redacted content visible with a strikethrough face, which may be useful for room moderators, but users should keep in mind that doing so will leave unpleasant content visible in the current session, even after being redacted by moderators.
307-
+ Option ~ement-room-list-avatars-generation~: if disabled, SVG-based room avatars are not generated. This option automatically tests whether SVG support is available in Emacs, and should allow use with builds of Emacs that lack =librsvg= support.
307+
+ Option ~ement-room-list-avatar-generation~: if disabled, SVG-based room avatars are not generated. This option automatically tests whether SVG support is available in Emacs, and should allow use with builds of Emacs that lack =librsvg= support.
308308

309309
*Changes*
310310

ement-room-list.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Set automatically when `ement-room-list-mode' is activated.")
140140
"Show room avatars in the room list."
141141
:type 'boolean)
142142

143-
(defcustom ement-room-list-avatars-generation (image-type-available-p 'svg)
143+
(defcustom ement-room-list-avatar-generation (image-type-available-p 'svg)
144144
"Generate SVG-based avatars for rooms that have none."
145145
:type 'boolean)
146146

@@ -421,7 +421,7 @@ from recent to non-recent for rooms updated in the past hour."
421421
(ement--resize-image (get-text-property 0 'display avatar)
422422
nil (frame-char-height)))
423423
;; Room has no avatar.
424-
(if ement-room-list-avatars-generation
424+
(if ement-room-list-avatar-generation
425425
(let* ((string (or display-name (ement--room-display-name room)))
426426
(ement-room-prism-minimum-contrast 1)
427427
(color (ement--prism-color string :contrast-with "white")))

0 commit comments

Comments
 (0)