Fix send again
This commit is contained in:
parent
b8c6decafc
commit
ee2974e51e
|
@ -307,7 +307,10 @@ class Event extends MatrixEvent {
|
||||||
Future<String> sendAgain({String txid}) async {
|
Future<String> sendAgain({String txid}) async {
|
||||||
if (status != -1) return null;
|
if (status != -1) return null;
|
||||||
await remove();
|
await remove();
|
||||||
final eventID = await room.sendTextEvent(text, txid: txid);
|
final eventID = await room.sendEvent(
|
||||||
|
content,
|
||||||
|
txid: txid ?? unsigned['transaction_id'],
|
||||||
|
);
|
||||||
return eventID;
|
return eventID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue