Don't publish keys if the server doesn't support pubsub.

Related-to: https://github.com/profanity-im/profanity/issues/2078
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
This commit is contained in:
Steffen Jaeckel
2025-11-18 13:13:48 +01:00
parent 1d508d592c
commit 01c781fcf6
2 changed files with 9 additions and 10 deletions

View File

@@ -346,8 +346,6 @@ omemo_generate_crypto_materials(ProfAccount* account)
void
omemo_publish_crypto_materials(void)
{
log_debug("[OMEMO] publish crypto materials");
if (omemo_ctx.loaded != TRUE) {
cons_show("OMEMO: cannot publish crypto materials before they are generated");
log_error("[OMEMO] cannot publish crypto materials before they are generated");