Page MenuHomePhabricator

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

Authored by inka on Thu, Jun 6, 6:48 AM.
Tags
None
Referenced Files
F2086139: D12333.diff
Sun, Jun 23, 12:09 PM
Unknown Object (File)
Sun, Jun 16, 10:13 PM
Unknown Object (File)
Fri, Jun 14, 7:03 AM
Unknown Object (File)
Tue, Jun 11, 6:14 PM
Unknown Object (File)
Sun, Jun 9, 3:18 PM
Unknown Object (File)
Thu, Jun 6, 1:29 PM
Unknown Object (File)
Thu, Jun 6, 9:43 AM
Unknown Object (File)
Thu, Jun 6, 9:41 AM
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.Thu, Jun 6, 7:04 AM
This revision is now accepted and ready to land.Thu, Jun 6, 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.