docs: boolean updateMessages(final JSONArray inboxMessages){
          boolean haveUpdates = false;
          ArrayList<CTMessageDAO> newMessages = new ArrayList<>();
  
          for(int i=0;i<inboxMessages.length();i++){
              try {
                  CTMessageDAO messageDAO = CTMessageDAO.initWithJSON(inboxMessages.getJSONObject(i), this.userId);
  
                  if (messageDAO == null) {
                      continue;
                  }
  
                  if (!videoSupported && messageDAO.containsVideoOrAudio()) {
                      Logger.d("Dropping inbox message containing video/audio as app does not support video. For more information checkout CleverTap documentation.");
                      continue;
                  }
  
                  newMessages.add(messageDAO);
  
                  Logger.v("Inbox Message for message id - "+messageDAO.getId()+" added");
              }catch (JSONException e){
                  Logger.d("Unable to update notification inbox messages - "+e.getLocalizedMessage());
              }
          }
  
          if(newMessages.size() > 0) {
              this.dbAdapter.upsertMessages(newMessages);
              haveUpdates = true;
              Logger.v("New Notification Inbox messages added");
              synchronized (messagesLock) {
                  this.messages = this.dbAdapter.getMessages(this.userId);
                  trimMessages();
              }
          }
          return haveUpdates;
      }