Page MenuHomePhabricator

[lib] Stop processing user infos from secondary keyservers on updateUserAvatarActionTypes
AbandonedPublic

Authored by inka on Jun 6 2024, 6:48 AM.
Tags
None
Referenced Files
F3495723: D12333.id41047.diff
Thu, Dec 19, 9:44 AM
F3495711: D12333.id.diff
Thu, Dec 19, 9:44 AM
F3495702: D12333.diff
Thu, Dec 19, 9:44 AM
Unknown Object (File)
Tue, Nov 26, 6:38 PM
Unknown Object (File)
Sun, Nov 24, 11:47 PM
Unknown Object (File)
Sat, Nov 23, 7:46 PM
Unknown Object (File)
Nov 14 2024, 12:37 PM
Unknown Object (File)
Nov 10 2024, 8:54 PM
Subscribers

Details

Reviewers
tomek
kamil
Summary

issue: ENG-7832
updateUserAvatarActionTypes was never refactored for multiple kyeservers because we don't want to be sending avatar updates to secondary keyservers. So this action is always called for the auth keyserver

Test Plan

Tested that setting the avatar still works

Diff Detail

Repository
rCOMM Comm
Branch
inka/userStore
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

inka requested review of this revision.Jun 6 2024, 7:04 AM
This revision is now accepted and ready to land.Jun 6 2024, 9:57 AM

Should this diff be titled something different? It doesn't seem that the title is accurate.

I'm also not clear why we need to be doing this. If the client calls updateUserAvatar when relyingOnAuthoritativeKeyserver, does we really want to ignore the result?

It seems like instead, we should just avoid calling updateUserAvatar when relyingOnAuthoritativeKeyserver.

When relyingOnAuthoritativeKeyserver is true we want the client to update their avatar by calling the auth keyserver. This change makes the client disregard updateUserAvatarActionTypes if relyingOnAuthoritativeKeyserver is false, under the assumption that we would then call a different action. But actually we will probably want to reuse the action types and only change the promise used.
I think this diff should be dropped, because we will probably want to reuse the action types for peer-to-peer avatar updates, and for now we have a loose guarantee that this action is not called for a different keyserver, because the promise we use it with (updateUserAvatar) was not refactored for multiple keyservers. So it can only call the auth keyserver.