Bonfire.Messages.API.GraphQLMasto.Adapter (Bonfire v1.0.1-social-alpha.28)

View Source

Conversations/DM API endpoints for Mastodon-compatible client apps

Summary

Functions

List conversations (DM threads) for the current user.

Mark a conversation as read.

Functions

conversations(params, conn)

List conversations (DM threads) for the current user.

Returns a list of Mastodon-compatible Conversation objects with:

  • id: thread ID
  • accounts: participants
  • unread: whether there are unseen messages
  • last_status: the most recent message

mark_conversation_read(map, conn)

Mark a conversation as read.

Marks all messages in the thread as seen by the current user. Returns the updated conversation object.