git » sdk » commit 641efc0

OMEMO: Fix potential invalid state transition

author Matthew Wild
2025-05-24 14:48:32 UTC
committer Stephen Paul Weber
2025-09-29 13:43:04 UTC
parent 6e109ac8e31ba5220d777dd48a58663e88cbe4e2

OMEMO: Fix potential invalid state transition

snikket/OMEMO.hx +1 -1

diff --git a/snikket/OMEMO.hx b/snikket/OMEMO.hx
index e4b7faf..b366cdb 100644
--- a/snikket/OMEMO.hx
+++ b/snikket/OMEMO.hx
@@ -397,7 +397,7 @@ class OMEMO {
 			// If we're not already busy, verify our published
 			// bundle after starting a new session (since we 
 			// may have missed notifications about it changing)
-			if(bundleLocalState.getCurrentState() == "ok" || bundlePublicState.can("verify")) {
+			if(bundlePublicState.can("verify")) {
 				bundlePublicState.event("verify");
 			}
 			return EventHandled;