post method

JsonMap post(
  1. FakePerson author,
  2. String threadId,
  3. String text
)

Posts text as author into threadId through the write path of the world (as if the author's client sent it) and returns the stored message.

Implementation

JsonMap post(FakePerson author, String threadId, String text) =>
    world.createMessage(author.id, threadId, {
      'client_msg_id': world.nextId(),
      'content_md': text,
    }).message;