View Source Glific.Conversations (Glific v5.1.6)

The main Glific abstraction that exposes the data in a stuctured manner as a set of conversations. For now each contact is associated with one and only one conversation. We will keep the API simple for now, but it is likely to become more complex and will require a fair number of iterations to get right

Link to this section Summary

Functions

Adding special offset to calculate recent message based on message number

Returns the last M conversations, each conversation not more than N messages

Link to this section Functions

Link to this function

add_special_offset(query, arg2, limit, offset)

View Source
@spec add_special_offset(Ecto.Query.t(), integer(), integer(), integer()) ::
  Ecto.Query.t()

Adding special offset to calculate recent message based on message number

Link to this function

list_conversations(args, count \\ false)

View Source
@spec list_conversations(map(), boolean()) :: list() | integer()

Returns the last M conversations, each conversation not more than N messages