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:
parent
e09f3fb615
commit
c0e339130e
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user