conversationCreated method

void conversationCreated(
  1. String siteTopic,
  2. String convId
)

Registers a PushOk reply for conversation:create on siteTopic.

convId becomes both conversationId and conv_id in the response, matching what the backend returns.

Implementation

void conversationCreated(String siteTopic, String convId) {
  replyFor(
    topic: siteTopic,
    event: 'conversation:create',
    result: PushOk({
      'conversation': {'conv_id': convId, 'conversationId': convId},
    }),
  );
}