From 6122a7eb1fbdd096d2c0ee67b1a51d92cdcbe140 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 4 Oct 2019 14:17:24 -0700 Subject: [PATCH] ircd::m::homeserver: Additional construction conditions. --- matrix/homeserver.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/matrix/homeserver.cc b/matrix/homeserver.cc index 8287696cf..064a69539 100644 --- a/matrix/homeserver.cc +++ b/matrix/homeserver.cc @@ -228,7 +228,12 @@ ircd::m::homeserver::homeserver(const struct opts *const &opts) if(primary == this && dbs::events && sequence(*dbs::events) == 0) bootstrap(*this); - m::keys::cache::set(key->verify_keys); + if(primary == this && conf) + conf->load(); + + if(key && !key->verify_keys.empty()) + m::keys::cache::set(key->verify_keys); + signon(*this); }