code: Observable<ChatResult> updateStoreWithSentMsg(MessageProcessor mp, ComapiResult<MessageSentResponse> response) {
          if (response.isSuccessful()) {
              return persistenceController.updateStoreWithNewMessage(mp.createFinalMessage(response.getResult()), noConversationListener).map(success -> adapter.adaptResult(response, success));
          } else {
              return Observable.fromCallable(() -> adapter.adaptResult(response));
          }
      }
docs: Handles message send service response. Will delete temporary message object. Same message but with correct message id will be inserted instead.
  
  @param mp       Message processor holding message sent details.
  @param response Service call response.
  @return Observable emitting result of operations.