HomePhabricator
Diffusion Comm e18226358f84

[lib] Handle new id schema for default avatars

Description

[lib] Handle new id schema for default avatars

Summary: After id schema conversion, the hash of threadID changes, which means the default emoji avatars change. This diff fixes that by detecting if the id is from ashoat's keyserver and if yes treating it as the old schema (hashing only the part after '|').

Test Plan: Log the values, and check if the prefix is correctly removed. Check if genesis default emoji matches the prod one.

Reviewers: kamil, tomek, ashoat

Reviewed By: ashoat

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D8491

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Jul 13 2023, 2:38 AM
Reviewer
ashoat
Differential Revision
D8491: [lib] Handle new id schema for default avatars
Parents
rCOMMf61bf372c059: [web] Use react-window
Branches
Unknown
Tags
Unknown

Event Timeline