diff options
Diffstat (limited to 'shard/lib/app/identity.ex')
-rw-r--r-- | shard/lib/app/identity.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shard/lib/app/identity.ex b/shard/lib/app/identity.ex index bacfdab..b034107 100644 --- a/shard/lib/app/identity.ex +++ b/shard/lib/app/identity.ex @@ -78,6 +78,14 @@ defmodule SApp.Identity do end end + def handle_cast(:send_deps, state) do + default_deps = [ + %SApp.Directory.Manifest{owner: state.pk, public: false, name: "friends"} + ] + GenServer.cast(Shard.Manager, {:dep_list, state.id, default_deps}) + {:noreply, state} + end + def handle_cast({:peer_connected, peer_pid}, state) do GenServer.cast(peer_pid, {:send_msg, {:interested, [state.id]}}) {:noreply, state} |