1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -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) {
_add_to_db(message, NULL, message->from_jid, message->to_jid);
} else {
const char* jid = connection_get_fulljid();
Jid* myjid = jid_create(jid);
Jid* myjid = jid_create(connection_get_fulljid());
_add_to_db(message, NULL, message->from_jid, myjid);