[Commits] [SCM] claws branch, gtk3, updated. 3.99.0-108-gd96ced2e4
paul at claws-mail.org
paul at claws-mail.org
Sat Jul 3 14:52:14 CEST 2021
The branch, gtk3 has been updated
via d96ced2e4fcab70ec8e2ddaa162da26fc5b14647 (commit)
from d748311c09ebf123412c0d6955770adb2d38e45e (commit)
Summary of changes:
src/procheader.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit d96ced2e4fcab70ec8e2ddaa162da26fc5b14647
Author: paul <paul at claws-mail.org>
Date: Sat Jul 3 13:52:10 2021 +0100
fix non-display of (X-)Face when prefs_common.enable_avatars is AVATARS_ENABLE_RENDER (2)
diff --git a/src/procheader.c b/src/procheader.c
index f5755b6a3..864651af7 100644
--- a/src/procheader.c
+++ b/src/procheader.c
@@ -663,9 +663,12 @@ static MsgInfo *parse_stream(void *data, gboolean isstring, MsgFlags flags,
msginfo->inreplyto = NULL;
- if (avatar_hook_id == HOOK_NONE && (prefs_common.enable_avatars & AVATARS_ENABLE_CAPTURE)) {
- avatar_hook_id = hooks_register_hook(AVATAR_HEADER_UPDATE_HOOKLIST, avatar_from_some_face, NULL);
- } else if (avatar_hook_id != HOOK_NONE && !(prefs_common.enable_avatars & AVATARS_ENABLE_CAPTURE)) {
+ if (avatar_hook_id == HOOK_NONE &&
+ (prefs_common.enable_avatars && (AVATARS_ENABLE_CAPTURE || AVATARS_ENABLE_RENDER))) {
+ avatar_hook_id = hooks_register_hook(AVATAR_HEADER_UPDATE_HOOKLIST,
+ avatar_from_some_face, NULL);
+ } else if (avatar_hook_id != HOOK_NONE &&
+ !(prefs_common.enable_avatars && AVATARS_ENABLE_CAPTURE)) {
hooks_unregister_hook(AVATAR_HEADER_UPDATE_HOOKLIST, avatar_hook_id);
avatar_hook_id = HOOK_NONE;
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list