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_outgoing

This commit is contained in:
Michael Vetter 2021-03-25 16:45:30 +01:00
parent c0e339130e
commit e93d4ff331

View File

@ -181,8 +181,7 @@ _log_database_add_outgoing(char* type, const char* const id, const char* const b
msg->timestamp = g_date_time_new_now_local(); //TODO: get from outside. best to have whole ProfMessage from outside
msg->enc = enc;
const char* jid = connection_get_fulljid();
Jid* myjid = jid_create(jid);
Jid* myjid = jid_create(connection_get_fulljid());
_add_to_db(msg, type, myjid, msg->from_jid); // TODO: myjid now in profmessage