1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Add logging consistency

Since MUC private messages are not logged by design,
part where this logging happening is removed to add consistency.

Add explanation in comment.
This commit is contained in:
John Hernandez 2023-04-18 18:19:47 +02:00
parent 5a1f2dedd3
commit 96ddb2399e

View File

@ -433,7 +433,7 @@ sv_ev_incoming_private_message(ProfMessage* message)
_clean_incoming_message(message);
privwin_incoming_msg(privatewin, message);
log_database_add_incoming(message);
// Intentionally skipping log to DB because we can't authenticate the sender
chat_log_msg_in(message);
plugins_post_priv_message_display(message->from_jid->fulljid, message->plain);
@ -457,6 +457,7 @@ sv_ev_delayed_private_message(ProfMessage* message)
_clean_incoming_message(message);
privwin_incoming_msg(privatewin, message);
// Intentionally skipping log to DB because we can't authenticate the sender
chat_log_msg_in(message);
plugins_post_priv_message_display(message->from_jid->fulljid, message->plain);