about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2021-04-28 09:28:41 +0200
committerGitHub <noreply@github.com>2021-04-28 09:28:41 +0200
commit4a94c051a4425003ba9d215af3e7b2c1898f2cbb (patch)
treecf978910e03f4d4ae83ef605bd0c6fe4fadf126f /src
parentc106187db726e5d843321350d696d29bfe0f7ba5 (diff)
parent9d404971da520de180723ac2bbd6aad69294d0c8 (diff)
downloadprofani-tty-4a94c051a4425003ba9d215af3e7b2c1898f2cbb.tar.gz
Merge pull request #1528 from dustinlagoy/pre-chat-message-display-on-history
Apply pre_chat_message_display hook to history
Diffstat (limited to 'src')
-rw-r--r--src/ui/chatwin.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/chatwin.c b/src/ui/chatwin.c
index e1ec1968..47345709 100644
--- a/src/ui/chatwin.c
+++ b/src/ui/chatwin.c
@@ -519,6 +519,7 @@ _chatwin_history(ProfChatWin* chatwin, const char* const contact_barejid)
 
         while (curr) {
             ProfMessage* msg = curr->data;
+            msg->plain = plugins_pre_chat_message_display(msg->from_jid->barejid, msg->from_jid->resourcepart, msg->plain);
             win_print_history((ProfWin*)chatwin, msg);
             curr = g_slist_next(curr);
         }