aboutsummaryrefslogtreecommitdiff
path: root/shard/lib/app/chat.ex
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2018-10-16 17:35:29 +0200
committerAlex Auvolat <alex@adnab.me>2018-10-16 17:35:29 +0200
commit80200dc43f271938fb14ec4eb4712e8dd7375aeb (patch)
tree27b4e8f8a5e0ae9a939f8723cb1123b2592592e8 /shard/lib/app/chat.ex
parent9ab6bdd4536a060f981932f09c5c8f722de25a81 (diff)
downloadshard-80200dc43f271938fb14ec4eb4712e8dd7375aeb.tar.gz
shard-80200dc43f271938fb14ec4eb4712e8dd7375aeb.zip
nothing big
Diffstat (limited to 'shard/lib/app/chat.ex')
-rw-r--r--shard/lib/app/chat.ex6
1 files changed, 5 insertions, 1 deletions
diff --git a/shard/lib/app/chat.ex b/shard/lib/app/chat.ex
index 4c7fc00..2a3872b 100644
--- a/shard/lib/app/chat.ex
+++ b/shard/lib/app/chat.ex
@@ -67,6 +67,10 @@ defmodule SApp.Chat do
# MAIN LOGIC
# ==========
+ defmodule State do
+ defstruct [:id, :netgroup, :manifest, :page_store, :mst, :subs, :read]
+ end
+
@doc """
Start a process that connects to a given channel
"""
@@ -104,7 +108,7 @@ defmodule SApp.Chat do
root: root}
SNet.Group.init_lookup(netgroup, self())
{:ok,
- %{id: id,
+ %State{id: id,
netgroup: netgroup,
manifest: manifest,
page_store: page_store,