From 3baa53f1da7f581619b066832b8303efbe9a46ba Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 2 Nov 2018 11:22:28 +0100 Subject: Remove friends list ; add some links --- shard/lib/app/directory.ex | 8 -------- shard/lib/app/identity.ex | 13 +++---------- 2 files changed, 3 insertions(+), 18 deletions(-) (limited to 'shard/lib/app') diff --git a/shard/lib/app/directory.ex b/shard/lib/app/directory.ex index a15de21..f4b5a0b 100644 --- a/shard/lib/app/directory.ex +++ b/shard/lib/app/directory.ex @@ -200,12 +200,4 @@ defmodule SApp.Directory do def rm_file(pid, name) do GenServer.call(pid, {:rm_file, name}) end - - @doc""" - Returns the friends directory of a user - """ - def friends_dir(pk) do - manifest = %Manifest{name: "friends", owner: pk, public: false} - Shard.Manager.find_or_start manifest - end end diff --git a/shard/lib/app/identity.ex b/shard/lib/app/identity.ex index 468906f..69bed93 100644 --- a/shard/lib/app/identity.ex +++ b/shard/lib/app/identity.ex @@ -79,16 +79,9 @@ defmodule SApp.Identity do end def handle_cast(:send_deps, state) do - default_deps = - if Shard.Keys.have_sk?(state.pk) do - [ - %SApp.Directory.Manifest{owner: state.pk, public: false, name: "friends"} - ] - else - [] - end - - GenServer.cast(Shard.Manager, {:dep_list, state.id, default_deps}) + # TODO: collections + + GenServer.cast(Shard.Manager, {:dep_list, state.id, []}) {:noreply, state} end -- cgit v1.2.3