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 c59795a407 - Show all commits

2
app.js
View File

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