x/ref: cgo onPeer filters out same blessings

The upshot is that you will no longer see yourself or your other
devices as nearby, since it isn't particularly important to know
that information.

Change-Id: I1fc9e879cee260db8dcffc5f911652a02c0f2fa0
diff --git a/services/syncbase/bridge/cgo/impl.go b/services/syncbase/bridge/cgo/impl.go
index 6fd4f6c..5bf9b52 100644
--- a/services/syncbase/bridge/cgo/impl.go
+++ b/services/syncbase/bridge/cgo/impl.go
@@ -387,6 +387,12 @@
 		return
 	}
 
+	_, userBlessings, err := util.AppAndUserPatternFromBlessings(security.DefaultBlessingNames(v23.GetPrincipal(b.Ctx))...)
+	if err != nil {
+		cErr.init(err)
+		return
+	}
+
 	// Forward the scan results to the callback.
 	go func() {
 		for {
@@ -394,6 +400,9 @@
 			if !ok {
 				break
 			}
+			if peer.Blessings == string(userBlessings) {
+				continue // Skip scan results that include yourself.
+			}
 			cPeer := C.v23_syncbase_AppPeer{}
 			cPeer.init(peer)
 			C.CallNeighborhoodScanCallbacksOnPeer(cbs, cPeer)