code: public Observable<Boolean> updateStoreForSentError(String conversationId, String tempId, String profileId) {
  
          return asObservable(new Executor<Boolean>() {
              @Override
              protected void execute(ChatStore store, Emitter<Boolean> emitter) {
                  store.beginTransaction();
                  boolean isSuccess = store.update(ChatMessageStatus.builder().populate(conversationId, tempId, profileId, LocalMessageStatus.error, System.currentTimeMillis(), null).build());
                  store.endTransaction();
                  emitter.onNext(isSuccess);
                  emitter.onCompleted();
              }
          });
      }
docs: Insert 'error' message status if sending message failed.
  
  @param conversationId Unique conversation id.
  @param tempId         Id of an temporary message for which
  @param profileId      Profile id from current session data.
  @return Observable emitting result.