chore: Follow up forward displayPendingEvent when using Room.sendTextEvent() or Room.sendFileEvent()
This commit is contained in:
parent
b8bd1b3cc0
commit
a43786674b
|
|
@ -711,6 +711,12 @@ class Room {
|
||||||
String? threadLastEventId,
|
String? threadLastEventId,
|
||||||
StringBuffer? commandStdout,
|
StringBuffer? commandStdout,
|
||||||
bool addMentions = true,
|
bool addMentions = true,
|
||||||
|
|
||||||
|
/// Displays an event in the timeline with the transaction ID as the event
|
||||||
|
/// ID and a status of SENDING, SENT or ERROR until it gets replaced by
|
||||||
|
/// the sync event. Using this can display a different sort order of events
|
||||||
|
/// as the sync event does replace but not relocate the pending event.
|
||||||
|
bool displayPendingEvent = true,
|
||||||
}) {
|
}) {
|
||||||
if (parseCommands) {
|
if (parseCommands) {
|
||||||
return client.parseAndRunCommand(
|
return client.parseAndRunCommand(
|
||||||
|
|
@ -784,6 +790,7 @@ class Room {
|
||||||
editEventId: editEventId,
|
editEventId: editEventId,
|
||||||
threadRootEventId: threadRootEventId,
|
threadRootEventId: threadRootEventId,
|
||||||
threadLastEventId: threadLastEventId,
|
threadLastEventId: threadLastEventId,
|
||||||
|
displayPendingEvent: displayPendingEvent,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -838,6 +845,12 @@ class Room {
|
||||||
Map<String, dynamic>? extraContent,
|
Map<String, dynamic>? extraContent,
|
||||||
String? threadRootEventId,
|
String? threadRootEventId,
|
||||||
String? threadLastEventId,
|
String? threadLastEventId,
|
||||||
|
|
||||||
|
/// Displays an event in the timeline with the transaction ID as the event
|
||||||
|
/// ID and a status of SENDING, SENT or ERROR until it gets replaced by
|
||||||
|
/// the sync event. Using this can display a different sort order of events
|
||||||
|
/// as the sync event does replace but not relocate the pending event.
|
||||||
|
bool displayPendingEvent = true,
|
||||||
}) async {
|
}) async {
|
||||||
txid ??= client.generateUniqueTransactionId();
|
txid ??= client.generateUniqueTransactionId();
|
||||||
sendingFilePlaceholders[txid] = file;
|
sendingFilePlaceholders[txid] = file;
|
||||||
|
|
@ -1035,6 +1048,7 @@ class Room {
|
||||||
editEventId: editEventId,
|
editEventId: editEventId,
|
||||||
threadRootEventId: threadRootEventId,
|
threadRootEventId: threadRootEventId,
|
||||||
threadLastEventId: threadLastEventId,
|
threadLastEventId: threadLastEventId,
|
||||||
|
displayPendingEvent: displayPendingEvent,
|
||||||
);
|
);
|
||||||
sendingFilePlaceholders.remove(txid);
|
sendingFilePlaceholders.remove(txid);
|
||||||
sendingFileThumbnails.remove(txid);
|
sendingFileThumbnails.remove(txid);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue