Use a checksum of the protocol id and account username for accounts without ids

Review Request #2052 — Created Nov. 10, 2022 and submitted

Information

pidgin/pidgin
default

Reviewers

This still isn't bullet proof, but it's better than just a UUID4. Any change to
a username, or switch protocols will potentially orphan lots of records, but
this is a step in the right direction.

In the future I'm thinking account names might be better, but the jury is still
out on that one.

Created a new account and verified that it got a sha256 digest as its id in accounts.xml.

Summary ID
Use a checksum of the protocol id and account username for accounts without ids
This still isn't bullet proof, but it's better than just a UUID4. Any change to a username, or switch protocols will potentially orphan lots of records, but this is a step in the right direction. In the future I'm thinking account names might be better, but the jury is still out on that one.
9744be56e1889628b61cc9f30fd843230f03e822
QuLogic
QuLogic
  1. Ship It!
  2. 
      
grim
Review request changed

Status: Closed (submitted)

Loading...