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)
Tue, Jun 18, 12:28 PM
Unknown Object (File)
Thu, Jun 13, 11:48 PM
Unknown Object (File)
Wed, Jun 12, 2:38 AM
Unknown Object (File)
Tue, Jun 11, 9:04 AM
Unknown Object (File)
Mon, Jun 10, 10:32 PM
Unknown Object (File)
May 23 2024, 10:52 PM
Unknown Object (File)
May 7 2024, 8:45 PM
Unknown Object (File)
May 7 2024, 8:45 PM
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