fix thread hover and composer
This commit is contained in:
parent
97768e3695
commit
6d9d67905c
@ -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>
|
||||
|
||||
|
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user