Merge pull request #1789 from famedly/krille/do-not-delete-file-in-constructor
refactor: Removes the behavior of deleting an event if the file is no longer cached
This commit is contained in:
commit
e4acb1f510
|
|
@ -145,19 +145,6 @@ class Event extends MatrixEvent {
|
|||
);
|
||||
}
|
||||
}
|
||||
|
||||
// If this is failed to send and the file is no longer cached, it should be removed!
|
||||
if (!status.isSent &&
|
||||
{
|
||||
MessageTypes.Image,
|
||||
MessageTypes.Video,
|
||||
MessageTypes.Audio,
|
||||
MessageTypes.File,
|
||||
}.contains(messageType) &&
|
||||
!room.sendingFilePlaceholders.containsKey(eventId)) {
|
||||
// ignore: discarded_futures
|
||||
remove();
|
||||
}
|
||||
}
|
||||
|
||||
static Map<String, dynamic> getMapFromPayload(Object? payload) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue