@@ -8,29 +8,32 @@ defmodule AlgoraWeb.Org.Nav do
8
8
9
9
def on_mount ( :default , % { "org_handle" => org_handle } , _session , socket ) do
10
10
current_org = Organizations . get_org_by ( handle: org_handle )
11
- members = Organizations . list_org_members ( current_org )
12
- contractors = Organizations . list_org_contractors ( current_org )
13
11
14
- online_users =
15
- ( contractors ++ members )
16
- |> Enum . uniq_by ( & & 1 . id )
17
- |> Enum . reject ( & ( & 1 . id == socket . assigns . current_user . id ) )
18
- |> Enum . map ( fn user ->
19
- % {
20
- id: user . id ,
21
- name: user . name || user . handle ,
22
- handle: user . handle ,
23
- avatar_url: user . avatar_url ,
24
- type: :individual
25
- }
26
- end )
12
+ # TODO: restore once chat is implemented
13
+ contacts = [ ]
14
+
15
+ # members = Organizations.list_org_members(current_org)
16
+ # contractors = Organizations.list_org_contractors(current_org)
17
+ # contacts =
18
+ # (contractors ++ members)
19
+ # |> Enum.uniq_by(& &1.id)
20
+ # |> Enum.reject(&(&1.id == socket.assigns.current_user.id))
21
+ # |> Enum.map(fn user ->
22
+ # %{
23
+ # id: user.id,
24
+ # name: user.name || user.handle,
25
+ # handle: user.handle,
26
+ # avatar_url: user.avatar_url,
27
+ # type: :individual
28
+ # }
29
+ # end)
27
30
28
31
{ :cont ,
29
32
socket
30
33
|> assign ( :new_bounty_form , to_form ( % { "github_issue_url" => "" , "amount" => "" } ) )
31
34
|> assign ( :current_org , current_org )
32
35
|> assign ( :nav , nav_items ( current_org . handle ) )
33
- |> assign ( :online_users , online_users )
36
+ |> assign ( :contacts , contacts )
34
37
|> attach_hook ( :active_tab , :handle_params , & handle_active_tab_params / 3 ) }
35
38
end
36
39
0 commit comments