mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-26 16:26:21 +00:00
db: Have one database per account
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user