Skip to content

Commit

Permalink
chore_: apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: osmaczko <[email protected]>
  • Loading branch information
chaitanyaprem and osmaczko authored Dec 9, 2024
1 parent e8877b1 commit eedb0da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion protocol/communities/manager_archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (m *ArchiveManager) StartHistoryArchiveTasksInterval(community *Community,
// adding the content-topic used for member updates.
// since member updates would not be too frequent i.e only addition/deletion would add a new message,
// this shouldn't cause too much increase in size of archive generated.
topics = append(topics, m.transport.FilterByChatID(community.MemberUpdateChannelID()).ContentTopic)
topics = append(topics, m.transport.FilterByChatID(community.UniversalChatID()).ContentTopic)

ts := time.Now().Unix()
to := time.Unix(ts, 0)
Expand Down
2 changes: 1 addition & 1 deletion protocol/communities_messenger_token_permissions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,7 @@ func (s *MessengerCommunitiesTokenPermissionsSuite) TestImportDecryptedArchiveMe
startDate := messageDate.Add(-time.Minute)
endDate := messageDate.Add(time.Minute)
topic := types.BytesToTopic(transport.ToTopic(chat.ID))
communityCommonTopic := types.BytesToTopic(transport.ToTopic(community.MemberUpdateChannelID()))
communityCommonTopic := types.BytesToTopic(transport.ToTopic(community.UniversalChatID()))
topics := []types.TopicType{topic, communityCommonTopic}

torrentConfig := params.TorrentConfig{
Expand Down

0 comments on commit eedb0da

Please sign in to comment.