From 920409e9149f99e894eb2e3bcd316e51a65e1bde Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 19 Feb 2023 21:22:20 +0100 Subject: Reduce code bloat a bit Especially the emoji array shrinks a lot with this, but adds a few extra relocations on startup. But it removes a lot of exception handling code at runtime, which is nice and possibly this is still faster. --- src/encryption/Olm.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/encryption/Olm.cpp') diff --git a/src/encryption/Olm.cpp b/src/encryption/Olm.cpp index 157b9169..6c5044be 100644 --- a/src/encryption/Olm.cpp +++ b/src/encryption/Olm.cpp @@ -32,6 +32,7 @@ auto client_ = std::make_unique(); std::map request_id_to_secret_name; constexpr auto MEGOLM_ALGO = "m.megolm.v1.aes-sha2"; +constexpr auto OLM_ALGO = "m.olm.v1.curve25519-aes-sha2"; } namespace olm { -- cgit 1.5.1