From d11be152952bce5b37f2a73b67a0ba14226ef01b Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Wed, 16 Apr 2025 12:59:04 +0100 Subject: [PATCH] ntf server: fix store log parser for token status --- src/Simplex/Messaging/Notifications/Protocol.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Simplex/Messaging/Notifications/Protocol.hs b/src/Simplex/Messaging/Notifications/Protocol.hs index 3594c2bc7..2167814c1 100644 --- a/src/Simplex/Messaging/Notifications/Protocol.hs +++ b/src/Simplex/Messaging/Notifications/Protocol.hs @@ -543,7 +543,7 @@ instance Encoding NtfTknStatus where NTActive -> "ACTIVE" NTExpired -> "EXPIRED" smpP = - A.takeTill (== ' ') >>= \case + A.takeTill (\c -> c == ' ' || c == ',') >>= \case "NEW" -> pure NTNew "REGISTERED" -> pure NTRegistered "INVALID" -> NTInvalid <$> optional (A.char ',' *> strP)