Skip to content

Commit 54534d6

Browse files
committed
message [nfc]: Dartdoc MessageStore.sendMessage
1 parent 343102d commit 54534d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/model/message.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ mixin MessageStore on ChannelStore {
3434

3535
void markReadFromScroll(Iterable<int> messageIds);
3636

37+
/// Makes a send-message request and starts an outbox lifecycle.
38+
///
39+
/// The returned [Future] settles when the send-message response is received.
40+
/// The [Future] resolves if the request succeeded and rejects if it failed,
41+
/// unless the event already arrived, in which case it resolves.
42+
///
43+
/// See [takeOutboxMessage] for a way to restore a composing session
44+
/// when it seems like the request might fail, or it has failed.
3745
Future<void> sendMessage({
3846
required MessageDestination destination,
3947
required String content,

0 commit comments

Comments
 (0)