From 4a7d15b36d9c4a298a76db72d23bfd579b3eca67 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Mon, 29 Jan 2024 18:30:27 +0100 Subject: [PATCH] fix: use CommunityShardKey's clock rather than community's clock --- protocol/messenger_communities.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index c595618cc..12b37954b 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -2825,7 +2825,7 @@ func (m *Messenger) HandleCommunityShardKey(state *ReceivedMessageState, message } func (m *Messenger) handleCommunityShardAndFiltersFromProto(community *communities.Community, message *protobuf.CommunityShardKey) error { - err := m.communitiesManager.UpdateShard(community, shard.FromProtobuff(message.Shard), community.Clock()) + err := m.communitiesManager.UpdateShard(community, shard.FromProtobuff(message.Shard), message.Clock) if err != nil { return err }