matterhorn-50200.13.0: Terminal client for the Mattermost chat system
Safe HaskellNone
LanguageHaskell2010

Matterhorn.LastRunState

Synopsis

Documentation

data LastRunState Source #

Run state of the program. This is saved in a file on program exit and | looked up from the file on program startup.

writeLastRunStates :: ChatState -> IO () Source #

Writes the run state to a file. The file is specific to the current team. | Writes only if the current channel is an ordrinary or a private channel.

readLastRunState :: TeamId -> IO (Either String LastRunState) Source #

Reads the last run state from a file given the current team ID.

isValidLastRunState :: ChatResources -> User -> LastRunState -> Bool Source #

Checks if the given last run state is valid for the current server and user.