Skip to content

prof_post_chat_message_display plugin hook for chat history messages is never invoked #2011

@ventosus

Description

@ventosus

The prof_post_chat_message_display hook is never invoked on the plugin side for chat history messages, only the prof_pre_chat_message_displayhook seems to be invoked.

debug

In the plugin hooks I just put this:

char msg [128];
snprintf(msg, sizeof(msg), "[%s] %s %s %s", __func__, barejid, resource, message);
prof_cons_show(msg);

log

14:42:33 ! [prof_pre_chat_message_display] peer@domain1 (null) ping
14:42:33 ! [prof_pre_chat_message_display] me@domain2 (null) pong
14:42:33 ! [prof_on_chat_win_focus] peer@domain1

version

$ profanity --version 2>&1 | sed -e 's/^/    /g'
Profanity, version 0.14.0
Copyright (C) 2012 - 2019 James Booth <boothj5web@gmail.com>.
Copyright (C) 2019 - 2023 Michael Vetter <jubalh@iodoru.org>.
License GPLv3+: GNU GPL version 3 or later <https://www.gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Build information:
XMPP library: libstrophe
Desktop notification support: Enabled
OTR support: Enabled (libotr 4.1.1)
PGP support: Enabled (libgpgme 1.24.1)
OMEMO support: Enabled
C plugins: Enabled
Python plugins: Enabled (3.13.1)
GTK icons/clipboard: Disabled
GDK Pixbuf: Enabled

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions