mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Merge pull request #1528 from dustinlagoy/pre-chat-message-display-on-history
Apply pre_chat_message_display hook to history
This commit is contained in:
commit
4a94c051a4
@ -519,6 +519,7 @@ _chatwin_history(ProfChatWin* chatwin, const char* const contact_barejid)
|
|||||||
|
|
||||||
while (curr) {
|
while (curr) {
|
||||||
ProfMessage* msg = curr->data;
|
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);
|
win_print_history((ProfWin*)chatwin, msg);
|
||||||
curr = g_slist_next(curr);
|
curr = g_slist_next(curr);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user