diff --git a/src/indexer.rs b/src/indexer.rs
index 1612408..9083848 100644
--- a/src/indexer.rs
+++ b/src/indexer.rs
@@ -159,6 +159,18 @@ impl DataServerSubscription {
}
self.last_seq = Some(event.seq);
+ if let Some(handle) = event.handle.as_ref() {
+ let user = fetch_user(&self.server, &event.did).await?;
+ if user.handle.as_deref() != Some(handle.as_str()) {
+ tracing::warn!(
+ seq = %event.seq,
+ expected = ?handle.as_str(),
+ got = ?user.handle,
+ "identity update did not update handle to asserted value"
+ );
+ }
+ }
+
Ok(Some(StreamEventPayload::Identity(event)))
}
@@ -193,9 +205,59 @@ impl DataServerSubscription {
event.active = false;
}
+ // TODO: mark user status ?
+
Ok(Some(StreamEventPayload::Account(event)))
}
+ async fn handle_migrate(
+ &mut self,
+ event: subscribe_repos::Migrate,
+ ) -> Result