Skip to content

Commit

Permalink
Fix remove room
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Aug 10, 2024
1 parent 68ce965 commit aa6b0ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/messages.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const {
addRoom,
loadRooms,
addRoomKeys,
getRooms} = require("./database.cjs")
getRooms,
removeRoom} = require("./database.cjs")
const {
trimExtra,
sanitize_pm_message,
Expand Down Expand Up @@ -107,6 +108,11 @@ ipcMain.on('add-room', async (e, room, admin) => {
new_swarm({key: room.k})
})

ipcMain.on('remove-room', async (e, room) => {
end_swarm(room)
removeRoom(room)
})


ipcMain.on('unblock', async (e, address) => {
unBlockContact(address)
Expand Down

0 comments on commit aa6b0ca

Please sign in to comment.