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

Matterhorn.State.Users

Synopsis

Documentation

handleTypingUser :: UserId -> ChannelId -> Maybe PostId -> MH () Source #

Handle the typing events from the websocket to show the currently typing users on UI

handleUserUpdated :: User -> MH () Source #

Handle the websocket event for when a user is updated, e.g. has changed their nickname

withFetchedUser :: UserFetch -> (UserInfo -> MH ()) -> MH () Source #

Given a user fetching strategy, locate the user in the state or fetch it from the server, and pass the result to the specified action. Assumes a single match is the only expected/valid result.