Skip to content

Commit

Permalink
Change to activeswarm
Browse files Browse the repository at this point in the history
  • Loading branch information
n9lsjr committed Nov 23, 2024
1 parent f7d1b16 commit dee43db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/routes/rooms/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const sendRoomMsg = async (e) => {
let time = Date.now()
const hash = await window.api.createGroup()
let myName = $user.username
let group = $rooms.thisRoom.key
let room = $swarm.activeSwarm?.key
let in_swarm = true
let in_channel = $swarm.activeChannel.name
//Reaction switch
Expand All @@ -137,7 +137,7 @@ const sendRoomMsg = async (e) => {
//Construct a new json object (myGroupMessage) to be able to print our message instant.
let myRoomMessage = {
message: msg,
grp: group,
grp: room,
reply: replyto,
address: myaddr,
time: time,
Expand All @@ -147,7 +147,7 @@ const sendRoomMsg = async (e) => {
}
let sendMsg = {
m: msg,
g: group,
g: room,
r: replyto,
k: myaddr,
t: time,
Expand Down
4 changes: 1 addition & 3 deletions src/routes/rooms/components/Room.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
const openRemove = () => {
$rooms.removeRoom = !$rooms.removeRoom
}
$: thisSwarm = $swarm.active.find(a => a.key === r.key)
$: in_voice = voice_channel.some(a => a.address === $user.myAddress)
Expand All @@ -48,7 +46,7 @@
class="card"
in:fade
out:fade
class:active="{$rooms.thisRoom?.key === r.key}"
class:active="{$swarm.activeSwarm?.key === r.key}"
on:click="{(e) => printRoom(r)}"
>

Expand Down

0 comments on commit dee43db

Please sign in to comment.