mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05: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:
parent
bf8fe3e7e6
commit
523681a642
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user