code: synchronized boolean markReadMessageForId(String messageId, String userId){
          if(messageId == null || userId == null) return false;
  
          final String tName = Table.INBOX_MESSAGES.getName();
          try{
              final SQLiteDatabase db = dbHelper.getWritableDatabase();
              ContentValues cv = new ContentValues();
              cv.put(IS_READ,1);
              db.update(Table.INBOX_MESSAGES.getName(), cv,_ID + " = ? AND " + USER_ID + " = ?",new String[]{messageId,userId});
              return true;
          }catch (final SQLiteException e){
              getConfigLogger().verbose("Error removing stale records from " + tName, e);
              return false;
          } finally {
              dbHelper.close();
          }
      }
docs: Marks inbox message as read for given messageId
  @param messageId String messageId
  @return boolean value depending on success of operation