@ObjectiveCName("isDiscardAck:") private boolean isDiscardAck(Message message){
  Event event=Event.getEvent(message.data[0]);
  if (event == Event.MESSAGE_DENIED && Actions.getAction(message.data[2]) == Actions.DELETE) {
    return true;
  }
  Actions action=Actions.getAction(message.data[0]);
  return action == Actions.DELETE || action == Actions.UNSUBSCRIBE;
}

@ ObjectiveCName ( "isDiscardAck:" ) private boolean isDiscardAck ( Message message ) { Event event = Event . getEvent ( message . data [ 0 ] ) ; if ( event == Event . MESSAGE_DENIED && Actions . getAction ( message . data [ 2 ] ) == Actions . DELETE ) { return true ; } Actions action = Actions . getAction ( message . data [ 0 ] ) ; return action == Actions . DELETE || action == Actions . UNSUBSCRIBE ; }
the following methods checks to prevent errors that occur when a record is discarded or deleted and recreated before the discard / delete ack message is received . a ( presumably unsolvable ) problem remains when a client deletes a record in the exact moment between another clients creation and read message for the same record
