rrbrambley / MessageBeast-Android

A library for building Message-based apps on App.net
MIT License
5 stars 0 forks source link

Handle missing/deleted pending files gracefully. #35

Closed rrbrambley closed 10 years ago

rrbrambley commented 10 years ago

When a pending file is no longer available (the user deleted it?), we need a way to notify the client app and delete the unsent message.

rrbrambley commented 10 years ago

This actually already happens as of 64ed545c23290fbb8c403bb22326e373553ad16d

When this happens, the FileUploadService sends a INTENT_ACTION_FILE_UPLOAD_COMPLETE with EXTRA_SUCCESS = false and EXTRA_FILE_NOT_FOUND = true. The client app should listen for this and do the right thing.