diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-03-23 12:18:25 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-04-06 10:50:20 +0200 |
commit | 11663625cc04cbe779e77509118872cacbd1b3e1 (patch) | |
tree | 29bb3f2d12adfd44063568ea88b0484fd2ffbe28 /src/event | |
parent | 672f3e22e87e899a38efe1a498057fe87e24be6e (diff) | |
download | profani-tty-11663625cc04cbe779e77509118872cacbd1b3e1.tar.gz |
db: Have one database per account
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); |