mirror of
https://gitgud.io/BondageProjects/Bondage-College.git
synced 2025-04-25 17:59:34 +00:00
Type-strict ChatSearchRoomSpaces
This commit is contained in:
parent
b019a1677b
commit
bb36722120
1 changed files with 2 additions and 1 deletions
|
@ -61,6 +61,7 @@ var ChatSearchLanguage = "";
|
|||
/** @type {"" | ServerChatRoomLanguage} */
|
||||
var ChatSearchLanguageTemp = "";
|
||||
var ChatSearchFilterTermsTemp = "";
|
||||
/** @type {ChatRoomSpaceLabel[]} */
|
||||
var ChatSearchRoomSpaces = ["MIXED", "FEMALE_ONLY", "MALE_ONLY"];
|
||||
var ChatSearchCurrentRoomSpaceIndex = 0;
|
||||
|
||||
|
@ -326,7 +327,7 @@ function ChatSearchRoomSpaceSelectClick() {
|
|||
if (Genders.includes("M")) TempRoomSpaces = TempRoomSpaces.filter(space => space != "FEMALE_ONLY");
|
||||
if (Genders.includes("F")) TempRoomSpaces = TempRoomSpaces.filter(space => space != "MALE_ONLY");
|
||||
|
||||
let CurrentRoomSpace = Object.keys(ChatRoomSpaceType).find(key => ChatRoomSpaceType[key] == ChatRoomSpace);
|
||||
let CurrentRoomSpace = CommonKeys(ChatRoomSpaceType).find(key => ChatRoomSpaceType[key] == ChatRoomSpace);
|
||||
|
||||
ChatSearchCurrentRoomSpaceIndex = TempRoomSpaces.indexOf(CurrentRoomSpace);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue