Remove useless UploadStatus.Success
This commit is contained in:
parent
4c15b7dc62
commit
4b47b0f7ec
|
@ -317,7 +317,6 @@ class MatrixClient(nio.AsyncClient):
|
|||
content["msgtype"] = "m.file"
|
||||
content["filename"] = path.name
|
||||
|
||||
upload_item.status = UploadStatus.Success
|
||||
del self.models[Upload, room_id][upload_item.uuid]
|
||||
|
||||
uuid = str(uuid4())
|
||||
|
|
|
@ -110,7 +110,6 @@ class UploadStatus(AutoStrEnum):
|
|||
CreatingThumbnail = auto()
|
||||
EncryptingThumbnail = auto()
|
||||
UploadingThumbnail = auto()
|
||||
Success = auto()
|
||||
Failure = auto() # TODO
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user