Fix send again

This commit is contained in:
Christian Pauly 2020-06-19 14:05:53 +02:00
parent b8c6decafc
commit ee2974e51e

View file

@ -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;
} }