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
Unknown Object (File)
Thu, Nov 14, 12:37 PM
Unknown Object (File)
Sun, Nov 10, 8:54 PM
Unknown Object (File)
Sun, Nov 10, 7:43 PM
Unknown Object (File)
Sun, Nov 10, 3:32 PM
Unknown Object (File)
Thu, Nov 7, 9:09 PM
Unknown Object (File)
Wed, Nov 6, 11:48 PM
Unknown Object (File)
Sun, Nov 3, 3:18 PM
Unknown Object (File)
Fri, Nov 1, 10:37 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.