Merge branch 'krille/fix-send-again' into 'master'

Fix send again

See merge request famedly/famedlysdk!351
This commit is contained in:
Sorunome 2020-06-20 19:50:08 +00:00
commit d8cb53e32f

View file

@ -307,7 +307,10 @@ class Event extends MatrixEvent {
Future<String> sendAgain({String txid}) async {
if (status != -1) return null;
await remove();
final eventID = await room.sendTextEvent(text, txid: txid);
final eventID = await room.sendEvent(
content,
txid: txid ?? unsigned['transaction_id'],
);
return eventID;
}