Promises refactored a bit to correctly handle the case of promise.thenCatch(...).thenApply(...): if onFailure returns nil, call the subsequent thenApply with a nil argument instead of throwing PromisedReplyError.illegalStateError("called handleSuccess on a non-resolved promise").
Work around for an apple bug when deleting the last message in a conversation.
Bug fix for access mode being changed even if the server rejects the change.
promise.thenCatch(...).thenApply(...)
: ifonFailure
returnsnil
, call the subsequentthenApply
with anil
argument instead of throwingPromisedReplyError.illegalStateError("called handleSuccess on a non-resolved promise")
.