Implement inviting users during room creation

This commit is contained in:
Pim Kunis 2021-09-11 12:39:42 +02:00
parent d4b058e739
commit ee8c821653
3 changed files with 32 additions and 9 deletions

View file

@ -13,3 +13,17 @@ account
access_token: "sneed"
)
|> Repo.insert!()
account =
Repo.insert!(%Account{
localpart: "steamed",
password_hash: Bcrypt.hash_pwd_salt("hams")
})
account
|> Ecto.build_assoc(:devices,
id: "iPhone",
display_name: "My iPhone",
access_token: "hams"
)
|> Repo.insert!()