fix thread hover and composer

This commit is contained in:
grimhilt 2023-04-05 17:31:53 +02:00
parent 97768e3695
commit 6d9d67905c
2 changed files with 3 additions and 3 deletions

View File

@ -32,9 +32,9 @@ onBeforeRouteUpdate(async (to, from) => {
const shouldDisplayComposer = () => {
if (!id.value) return false;
const room = store.getters.room(id);
const room = store.getters.room(id.value);
if (!room) return false;
return room.roomType === RoomType.THREAD || room.roomType === RoomType.GROUP;
return room.roomType == RoomType.THREAD || room.roomType == RoomType.GROUP;
};
</script>

View File

@ -14,7 +14,7 @@ const router = useRouter();
<template>
<div
@click="router.push(`/${props.threadId}`)"
v-bind:class="store.state.activeRoom == props.data.id ? 'selected' : ''"
v-bind:class="store.state.activeRoom == props.threadId ? 'selected' : ''"
class="room"
>
{{ room.roomName }}