feat(daemon): GetPendingStatus D-Bus method + 2 integration tests

Drops the #[allow(dead_code)] on AppState::get_pending_status — it's now
called from the D-Bus dispatch. Two new p2p tests cover the absent and
the round-trip cases.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
michael
2026-04-27 10:51:25 -07:00
parent 86e3ffe8d5
commit 1976971bb5
2 changed files with 39 additions and 2 deletions

View File

@@ -259,7 +259,6 @@ impl AppState {
Ok(self.pending.get(user)?.is_some())
}
#[allow(dead_code)] // wired through D-Bus in Task 5.
pub async fn get_pending_status(&self, user: &str) -> Result<PendingStatus, StateError> {
match self.pending.get(user)? {
Some(flag) => Ok(PendingStatus { present: true, flag }),