[#13855] Fix contact request decision status on Sync All

This commit is contained in:
Roman Volosovskyi 2022-09-08 16:37:22 +02:00
parent 37d3f9f612
commit 0ecbb5e8d7
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
0.108.2
0.108.3

View File

@ -3010,7 +3010,7 @@ func (m *Messenger) SyncDevices(ctx context.Context, ensName, photoPath string)
for id, state := range ids {
if state == common.ContactRequestStateAccepted || state == common.ContactRequestStateDismissed {
accepted := state == common.ContactRequestStateDismissed
accepted := state == common.ContactRequestStateAccepted
err := m.syncContactRequestDecision(ctx, id, accepted)
if err != nil {
return err

View File

@ -138,7 +138,7 @@ func TestResourceURL(t *testing.T) {
require.NoError(t, err)
require.Equal(t, "https", uri.Scheme)
require.Equal(t, "swarm-gateways.net", uri.Host)
require.Equal(t, "/bzz:/b00909fbabe78f57fda93218323db5721ce256fda442ce02b46813404c6d8958/", uri.Path)
require.Equal(t, "/bzz:/b7976f7fabd7ba88a897452a2860228dcefec427302a3dedae164b51c780a5b8/", uri.Path)
uri, err = api.ResourceURL(context.Background(), 1, "noahzinsmeister.eth")
require.NoError(t, err)