code: function(params, callback) {
                  var updateThreadInfoData = {
                      chatMessageVOType: chatMessageVOTypes.UPDATE_THREAD_INFO,
                      typeCode: params.typeCode,
                      subjectId: params.threadId,
                      content: {},
                      pushMsgType: 4,
                      token: token
                  };
  
                  if (params) {
                      if (parseInt(params.threadId) > 0) {
                          updateThreadInfoData.subjectId = params.threadId;
                      }
                      else {
                          fireEvent('error', {
                              code: 999,
                              message: 'Thread ID is required for Updating thread info!'
                          });
                      }
  
                      if (typeof params.image == 'string') {
                          updateThreadInfoData.content.image = params.image;
                      }
  
                      if (typeof params.description == 'string') {
                          updateThreadInfoData.content.description = params.description;
                      }
  
                      if (typeof params.title == 'string') {
                          updateThreadInfoData.content.name = params.title;
                      }
  
                      if (typeof params.metadata == 'object') {
                          updateThreadInfoData.content.metadata = JSON.stringify(params.metadata);
                      }
                      else if (typeof params.metadata == 'string') {
                          updateThreadInfoData.content.metadata = params.metadata;
                      }
                  }
  
                  return sendMessage(updateThreadInfoData, {
                      onResult: function(result) {
                          callback && callback(result);
                      }
                  });
              }
docs: *****************************************************
  P R I V A T E   M E T H O D S            *
  *****************************************************