Add contact favorites filter with companion flags bit0 persistence#173
Add contact favorites filter with companion flags bit0 persistence#173Specter242 wants to merge 4 commits intozjs81:mainfrom
Conversation
Introduce app-side room auto-sync orchestration with per-room enablement, sync status indicators, and configurable timing controls so users can keep only selected room servers up to date. Co-authored-by: Cursor <cursoragent@cursor.com>
|
I can not see where the link to the contacts flag from the companion is made. |
This reads and writes favorite state via contact flags bit0, preserves flags when updating paths, and removes the app-only favorites storage pattern so favorite status stays consistent across clients. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Thanks for the detailed review, Eric — great catch. You were correct: the earlier version only used app-local favorite state. This has now been replaced. What is now implemented in this PR:
So the current PR behavior matches If you can, please retest on the latest commit ( |
|
Quick follow-up after feedback: this PR now uses companion flags bit0 for favorites end-to-end (latest commit: bc08298).\n\nKey updates in code:\n- Parse/store contact flags from contact frames (, ).\n- Toggle favorite by writing with updated flags ().\n- Preserve flags during path updates so favorites are not lost on path changes.\n- Removed app-only favorite cache path.\n\nIf this looks good, please re-review against commit . |
|
Unfortunately I can not build and test at the moment, because I shot my build-system through loosing my environment variables and other links. |
|
I reviewed this PR with the companion protocol behavior in mind, and these are my findings:
Protocol check:
|
|
Addressed all 4 findings from the latest review on this PR head ():
I also ran Resolving dependencies... info • The import of 'dart:typed_data' is unnecessary because all of the used elements are also provided by the import of 'package:flutter/foundation.dart' • lib/screens/repeater_status_screen.dart:3:8 • unnecessary_import locally after the changes. Please re-review when you have a moment. |
|
Correction to prior note (formatting issue): Addressed all 4 findings from the latest review on this PR head (05cc2a2):
flutter analyze was run locally after these changes. Please re-review when you have a moment. |
Summary
flagsbit0 as the source of truth for favorites (read + write), instead of local app-only storage.CMD_ADD_UPDATE_CONTACTpath updates so favorites are not cleared by path changes.Context
Test plan
dart formaton modified Dart filesflutter gen-l10nflutter analyzeflutter build apk --debug+adb install -r)