From 6b12d8d04058cca746f41b283d9524309ec9cbfa Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Sun, 8 Jun 2025 23:17:42 +0100 Subject: [PATCH] reset NTF service when adding notifier --- src/Simplex/Messaging/Server/QueueStore/Postgres.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Simplex/Messaging/Server/QueueStore/Postgres.hs b/src/Simplex/Messaging/Server/QueueStore/Postgres.hs index f440b9d5b..b159207de 100644 --- a/src/Simplex/Messaging/Server/QueueStore/Postgres.hs +++ b/src/Simplex/Messaging/Server/QueueStore/Postgres.hs @@ -352,7 +352,7 @@ instance StoreQueueClass q => QueueStoreClass q (PostgresQueueStore q) where db [sql| UPDATE msg_queues - SET notifier_id = ?, notifier_key = ?, rcv_ntf_dh_secret = ? + SET notifier_id = ?, notifier_key = ?, rcv_ntf_dh_secret = ?, ntf_service_id = NULL WHERE recipient_id = ? AND deleted_at IS NULL |] (nId, notifierKey, rcvNtfDhSecret, rId)