Fixed rooms not being deleted from the json file #4

Merged
snxraven merged 10 commits from MiTask/LinkUp-P2P-Chat:main into main 2024-06-09 04:20:00 -04:00
Showing only changes of commit 8bac7def09 - Show all commits

3
app.js
View File

@ -279,8 +279,7 @@ function leaveRoom() {
roomItem.remove(); roomItem.remove();
} }
console.log(topic); config.rooms = config.rooms.filter(e => e !== topic);
config.rooms = config.rooms.filter(e => e !== currentRoom.topic.toString());
writeConfigToFile("./config.json"); writeConfigToFile("./config.json");
currentRoom.destroy(); currentRoom.destroy();