matterhorn-90000.0.0: Terminal client for the Mattermost chat system
Safe HaskellSafe-Inferred
LanguageHaskell2010

Matterhorn.Types.Common

Synopsis

Documentation

userIdForDMChannel Source #

Arguments

:: UserId

My user ID

-> Text

The channel name

-> Maybe UserId 

Extract the corresponding other user from a direct channel name. Returns Nothing if the string is not a direct channel name or if it is but neither user ID in the name matches the current user's ID.