components/chat.js
function fromChatID(steamID) {
	steamID = Helpers.steamID(steamID);

	if (steamID.isGroupChat()) {
		steamID.type = SteamID.Type.CLAN;
		steamID.instance &= ~SteamID.ChatInstanceFlags.Clan;
	}

	return steamID;
}
function fromChatID(steamID) {
	steamID = Helpers.steamID(steamID);

	if (steamID.isGroupChat()) {
		steamID.type = SteamID.Type.CLAN;
		steamID.instance &= ~SteamID.ChatInstanceFlags.Clan;
	}

	return steamID;
}
function fromChatID ( steamID ) { steamID = Helpers . steamID ( steamID ) ; if ( steamID . isGroupChat ( ) ) { steamID . type = SteamID . Type . CLAN ; steamID . instance &= ~ SteamID . ChatInstanceFlags . Clan ; } return steamID ; }
If steamID is a clan chat ID, converts to the appropriate clan ID. Otherwise, returns it untouched.
@param {SteamID} steamID
@returns SteamID
If steamID is a clan chat ID converts to the appropriate clan ID . Otherwise returns it untouched .