fix: use CommunityShardKey's clock rather than community's clock

This commit is contained in:
Patryk Osmaczko 2024-01-29 18:30:27 +01:00 committed by osmaczko
parent ac81c15805
commit 4a7d15b36d
1 changed files with 1 additions and 1 deletions

View File

@ -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
}