Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
osmaczko committed Feb 5, 2025
1 parent bd73a40 commit 989b412
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion protocol/communities_messenger_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ func defaultTestCommunitiesMessengerSettings() *settings.Settings {
SendPushNotifications: true,
ProfilePicturesVisibility: 1,
DefaultSyncPeriod: 777600,
UseMailservers: true,
UseMailservers: false,
LinkPreviewRequestEnabled: true,
SendStatusUpdates: true,
WalletRootAddress: types.HexToAddress("0x1122334455667788990011223344556677889900")}
Expand Down
1 change: 0 additions & 1 deletion protocol/communities_messenger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ func (s *MessengerCommunitiesSuite) TestPostToCommunityChat() {
s.Require().NoError(err)
s.Require().Len(response.Messages(), 1)
s.Require().Equal(inputMessage.Text, response.Messages()[0].Text)
s.Require().Equal(s.alice.account.GetCustomizationColor(), response.Contacts[0].CustomizationColor)

// check if response contains the chat we're interested in
// we use this instead of checking just the length of the chat because
Expand Down
5 changes: 5 additions & 0 deletions protocol/messenger_builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@ func newTestMessenger(waku wakutypes.Waku, config testMessengerConfig) (*Messeng
m.retrievedMessagesIteratorFactory = config.messagesOrderController.newMessagesIterator
}

err = m.settings.SetUseMailservers(false)
if err != nil {
return nil, err
}

err = m.InitInstallations()
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion protocol/messenger_sync_settings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (s *MessengerSyncSettingsSuite) newMessenger() *Messenger {
ProfilePicturesShowTo: 1,
ProfilePicturesVisibility: 1,
DefaultSyncPeriod: 86400,
UseMailservers: true,
UseMailservers: false,
LinkPreviewRequestEnabled: true,
SendStatusUpdates: true,
WalletRootAddress: types.HexToAddress("0x1122334455667788990011223344556677889900"),
Expand Down

0 comments on commit 989b412

Please sign in to comment.