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)
Thu, Dec 26, 4:24 AM
Unknown Object (File)
Thu, Dec 26, 4:24 AM
Unknown Object (File)
Thu, Dec 26, 4:24 AM
Unknown Object (File)
Thu, Dec 26, 4:23 AM
Unknown Object (File)
Thu, Dec 26, 4:17 AM
Unknown Object (File)
Nov 30 2024, 11:59 PM
Unknown Object (File)
Nov 23 2024, 2:08 AM
Unknown Object (File)
Nov 19 2024, 6:26 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