1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Log outgoing carbons instead of incoming

Incoming carbons are logged as normal message already.
So we had this logged twice but didn't log outgoing carbons,
send from our account but by another client, at all.

Fix https://github.com/profanity-im/profanity/issues/1181
This commit is contained in:
Michael Vetter 2019-10-04 13:22:14 +02:00
parent bf8fe3e7e6
commit 523681a642

View File

@ -425,6 +425,10 @@ sv_ev_outgoing_carbon(ProfMessage *message)
chat_state_active(chatwin->state);
if (message->plain) {
chat_log_msg_out(message->jid->barejid, message->plain);
}
#ifdef HAVE_LIBGPGME
#ifndef HAVE_OMEMO
if (message->encrypted) {
@ -734,10 +738,6 @@ sv_ev_incoming_carbon(ProfMessage *message)
#endif
}
if (message->plain) {
chat_log_msg_out(message->jid->barejid, message->plain);
}
#ifdef HAVE_LIBGPGME
#ifndef HAVE_OMEMO
if (message->encrypted) {