Change Credentials to Vault/IVault in docstrings
References to `Credentials` leftover from
e62b6a09c4
pull/1/head
parent
1f0b817697
commit
fa52c6e09c
|
@ -26,7 +26,7 @@ superior ASCII snake model.)
|
|||
|
||||
Every task will add another value to an extensible record, which can be used
|
||||
by later tasks in the chain. Additionally, every subtask can leave a `VaultUpdate`
|
||||
type as a message to the Credentials to update certain information.
|
||||
type as a message to the Vault to update certain information.
|
||||
|
||||
-}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
module Internal.Values.Vault exposing (..)
|
||||
|
||||
{-| The Credentials type is the keychain of the Matrix SDK.
|
||||
{-| The IVault (Internal Vault) type is the keychain of the Matrix SDK.
|
||||
It handles all communication with the homeserver.
|
||||
-}
|
||||
|
||||
|
@ -51,7 +51,7 @@ getInvites (IVault data) =
|
|||
data.invites
|
||||
|
||||
|
||||
{-| Get a room from the Credentials type by the room's id.
|
||||
{-| Get a room from the IVault type by the room's id.
|
||||
-}
|
||||
getRoomById : String -> IVault -> Maybe IRoom
|
||||
getRoomById roomId (IVault cred) =
|
||||
|
@ -72,7 +72,7 @@ getSince (IVault { since }) =
|
|||
since
|
||||
|
||||
|
||||
{-| Create new empty Credentials.
|
||||
{-| Create new empty IVault.
|
||||
-}
|
||||
init : IVault
|
||||
init =
|
||||
|
@ -102,7 +102,7 @@ insertAccountData { content, eventType, roomId } (IVault data) =
|
|||
IVault { data | accountData = Dict.insert eventType content data.accountData }
|
||||
|
||||
|
||||
{-| Add a new room to the Credentials type. If a room with this id already exists, it is overwritten.
|
||||
{-| Add a new room to the IVault type. If a room with this id already exists, it is overwritten.
|
||||
|
||||
This function can hence also be used as an update function for rooms.
|
||||
|
||||
|
|
Loading…
Reference in New Issue