MessagesFeeder

class MessagesFeeder(localDatabase: UserDatabaseBuilder, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)

Debug-only feeder that generates synthetic text messages in a given conversation.

What it does:

  1. Picks up to 5 members of that conversation that:

    • exist in the Member table for this conversation,

    • have at least one valid client in the Client table (is_valid = 1).

  2. For those users it generates up to 10k text messages in total (max 5 users × 2000 messages per user).

Generated messages:

  • content_type = 'TEXT'

  • visibility = 'VISIBLE'

  • status = 'SENT'

  • sender_user_id = one of the 5 selected conversation members

  • sender_client_id = a real, existing Client.id for that user (never null)

  • text_body = simple synthetic text

⚠️ This API must never be used in production. It is purely for performance / UX testing.

Constructors

Link copied to clipboard
constructor(localDatabase: UserDatabaseBuilder, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)

Functions

Link copied to clipboard
suspend fun feed(conversationId: ConversationIDEntity): <Error class: unknown class>

Populates the given conversation with synthetic text messages.