galley-0.83.0: Conversations
Safe HaskellSafe-Inferred
LanguageGHC2021

Galley.Data.Conversation

Synopsis

Data Conversation types

data Conversation Source #

Internal conversation type, corresponding directly to database schema. Should never be sent to users (and therefore doesn't have FromJSON or ToJSON instances).

Instances

Instances details
Show Conversation Source # 
Instance details

Defined in Galley.Data.Conversation.Types

Utilities

localOne2OneConvId :: UUID V4 -> UUID V4 -> ConvId Source #

We deduce the conversation ID by adding the 4 components of the V4 UUID together pairwise, and then setting the version bits (v4) and variant bits (variant 2). This means that we always know what the UUID is for a one-to-one conversation which hopefully makes them unique.