Page MenuHomePhabricator

[lib] Handle new id schema for default avatars
ClosedPublic

Authored by michal on Jul 13 2023, 2:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 18, 9:01 AM
Unknown Object (File)
Fri, Oct 18, 9:01 AM
Unknown Object (File)
Fri, Oct 18, 9:01 AM
Unknown Object (File)
Fri, Oct 18, 9:00 AM
Unknown Object (File)
Fri, Oct 18, 8:51 AM
Unknown Object (File)
Sep 26 2024, 3:56 PM
Unknown Object (File)
Sep 21 2024, 9:49 PM
Unknown Object (File)
Sep 16 2024, 2:02 AM
Subscribers

Details

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.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable