components/chatroom.js
function processChatRoomSummaryPair(summaryPair, preProcessed) {
	if (!preProcessed) {
		summaryPair = preProcessObject(summaryPair);
	}

	summaryPair.group_state = processUserChatGroupState(summaryPair.user_chat_group_state, true);
	summaryPair.group_summary = processChatGroupSummary(summaryPair.group_summary, true);
	delete summaryPair.user_chat_group_state;
	return summaryPair;
}
function processChatRoomSummaryPair(summaryPair, preProcessed) {
	if (!preProcessed) {
		summaryPair = preProcessObject(summaryPair);
	}

	summaryPair.group_state = processUserChatGroupState(summaryPair.user_chat_group_state, true);
	summaryPair.group_summary = processChatGroupSummary(summaryPair.group_summary, true);
	delete summaryPair.user_chat_group_state;
	return summaryPair;
}
function processChatRoomSummaryPair ( summaryPair , preProcessed ) { if ( ! preProcessed ) { summaryPair = preProcessObject ( summaryPair ) ; } summaryPair . group_state = processUserChatGroupState ( summaryPair . user_chat_group_state , true ) ; summaryPair . group_summary = processChatGroupSummary ( summaryPair . group_summary , true ) ; delete summaryPair . user_chat_group_state ; return summaryPair ; }
Process a chat room summary pair.
@param {object} summaryPair
@param {boolean} [preProcessed=false]
@returns {object}
Process a chat room summary pair .