Remove useless UploadStatus.Success

This commit is contained in:
miruka 2019-11-06 07:52:43 -04:00
parent 4c15b7dc62
commit 4b47b0f7ec
2 changed files with 0 additions and 2 deletions

View File

@ -317,7 +317,6 @@ class MatrixClient(nio.AsyncClient):
content["msgtype"] = "m.file" content["msgtype"] = "m.file"
content["filename"] = path.name content["filename"] = path.name
upload_item.status = UploadStatus.Success
del self.models[Upload, room_id][upload_item.uuid] del self.models[Upload, room_id][upload_item.uuid]
uuid = str(uuid4()) uuid = str(uuid4())

View File

@ -110,7 +110,6 @@ class UploadStatus(AutoStrEnum):
CreatingThumbnail = auto() CreatingThumbnail = auto()
EncryptingThumbnail = auto() EncryptingThumbnail = auto()
UploadingThumbnail = auto() UploadingThumbnail = auto()
Success = auto()
Failure = auto() # TODO Failure = auto() # TODO