Finalize Outgoing Messages Refactoring.

PR https://github.com/matrix-org/matrix-ios-sdk/pull/210.

- Add `MXEventSentStatePreparing` value in `MXEventSentState` enum:
The event is an outgoing event which is preparing by converting the data to sent, or uploading additional data.
This commit is contained in:
giomfo
2016-12-27 14:43:17 +01:00
parent 4756b99c5b
commit 4d4acd2aa4
+3 -1
View File
@@ -1746,7 +1746,9 @@
}];
// Check status of the selected event
if (selectedEvent.sentState == MXEventSentStateEncrypting || selectedEvent.sentState == MXEventSentStateUploading)
if (selectedEvent.sentState == MXEventSentStatePreparing ||
selectedEvent.sentState == MXEventSentStateEncrypting ||
selectedEvent.sentState == MXEventSentStateUploading)
{
// Upload id is stored in attachment url (nasty trick)
NSString *uploadId = roomBubbleTableViewCell.bubbleData.attachment.actualURL;