We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 343102d commit 54534d6Copy full SHA for 54534d6
lib/model/message.dart
@@ -34,6 +34,14 @@ mixin MessageStore on ChannelStore {
34
35
void markReadFromScroll(Iterable<int> messageIds);
36
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.
45
Future<void> sendMessage({
46
required MessageDestination destination,
47
required String content,
0 commit comments