From 2013b65c5843ec873089020e55bfbba9c82ce174 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Fri, 26 Jul 2024 17:48:01 +0100 Subject: [PATCH] fix_: make StoreNodeRequestManager filters ephemeral (#5582) (#5590) --- protocol/messenger_store_node_request_manager.go | 2 ++ protocol/transport/filters_manager.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol/messenger_store_node_request_manager.go b/protocol/messenger_store_node_request_manager.go index ff770710a..e5a67e1af 100644 --- a/protocol/messenger_store_node_request_manager.go +++ b/protocol/messenger_store_node_request_manager.go @@ -279,6 +279,8 @@ func (m *StoreNodeRequestManager) getFilter(requestType storeNodeRequestType, da return nil, false, fmt.Errorf("invalid store node request type: %d", requestType) } + filter.Ephemeral = true + return filter, true, nil } diff --git a/protocol/transport/filters_manager.go b/protocol/transport/filters_manager.go index 735110658..5393d63bf 100644 --- a/protocol/transport/filters_manager.go +++ b/protocol/transport/filters_manager.go @@ -543,7 +543,7 @@ func (f *FiltersManager) LoadPublic(chatID string, pubsubTopic string) (*Filter, f.logger.Debug("updating pubsub topic for filter", zap.String("chatID", chatID), zap.String("type", "public"), - zap.String("oldTOpic", chat.PubsubTopic), + zap.String("oldTopic", chat.PubsubTopic), zap.String("newTopic", pubsubTopic), ) chat.PubsubTopic = pubsubTopic