1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

database: simplify log_database_add_incoming

This commit is contained in:
Michael Vetter 2021-03-25 16:44:36 +01:00
parent e09f3fb615
commit c0e339130e

View File

@ -161,8 +161,7 @@ log_database_add_incoming(ProfMessage* message)
if (message->to_jid) { if (message->to_jid) {
_add_to_db(message, NULL, message->from_jid, message->to_jid); _add_to_db(message, NULL, message->from_jid, message->to_jid);
} else { } else {
const char* jid = connection_get_fulljid(); Jid* myjid = jid_create(connection_get_fulljid());
Jid* myjid = jid_create(jid);
_add_to_db(message, NULL, message->from_jid, myjid); _add_to_db(message, NULL, message->from_jid, myjid);