matterhorn-50200.17.0: Terminal client for the Mattermost chat system
Safe HaskellNone
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.