mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: Comments
This commit is contained in:
parent
69c4460a03
commit
5f31a64ceb
2 changed files with 3 additions and 4 deletions
|
|
@ -2,11 +2,11 @@
|
||||||
/// Say we open the profile page (drift_person.page.dart) for Person A, and then nested above
|
/// Say we open the profile page (drift_person.page.dart) for Person A, and then nested above
|
||||||
/// a image viewer for an image that belongs to Person A.
|
/// a image viewer for an image that belongs to Person A.
|
||||||
///
|
///
|
||||||
/// When the users now merges user A into user B, we cant just listen to
|
/// When the users now merges user A into user B, we can't just listen to
|
||||||
/// the changes in the profile page, we have to keep track where the user A (now B)
|
/// the changes in the profile page, we have to keep track of where the user A (now B)
|
||||||
/// can be found in the DB.
|
/// can be found in the DB.
|
||||||
///
|
///
|
||||||
/// So when popping back to the profile page (and the user is missing) we check
|
/// So when popping back to the profile page (and the user is missing), we check
|
||||||
/// which other person B we have to display instead.
|
/// which other person B we have to display instead.
|
||||||
class PersonMergeTrackerService {
|
class PersonMergeTrackerService {
|
||||||
/// Map of merged person ID -> target person ID
|
/// Map of merged person ID -> target person ID
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,6 @@ class _DriftPersonPageState extends ConsumerState<DriftPersonPage> {
|
||||||
.first
|
.first
|
||||||
.then((targetPerson) {
|
.then((targetPerson) {
|
||||||
if (targetPerson != null && mounted) {
|
if (targetPerson != null && mounted) {
|
||||||
// Mark the merge record as handled
|
|
||||||
mergeTracker.markMergeRecordHandled(_person.id);
|
mergeTracker.markMergeRecordHandled(_person.id);
|
||||||
|
|
||||||
// Open the target person's page
|
// Open the target person's page
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue