diff options
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/common.c | 2 | ||||
-rw-r--r-- | src/event/server_events.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/event/common.c b/src/event/common.c index 05c3f30b..4dc62b07 100644 --- a/src/event/common.c +++ b/src/event/common.c @@ -33,6 +33,7 @@ * */ +#include "database.h" #include "config/tlscerts.h" #include "ui/ui.h" #include "xmpp/chat_session.h" @@ -67,6 +68,7 @@ ev_disconnect_cleanup(void) #ifdef HAVE_OMEMO omemo_on_disconnect(); #endif + log_database_close(); } gboolean diff --git a/src/event/server_events.c b/src/event/server_events.c index 348e9b74..86176078 100644 --- a/src/event/server_events.c +++ b/src/event/server_events.c @@ -92,6 +92,8 @@ sv_ev_login_account_success(char *account_name, gboolean secured) omemo_on_connect(account); #endif + log_database_init(account); + avatar_pep_subscribe(); ui_handle_login_account_success(account, secured); |