mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 20:54:13 +02:00
fix type errors
This commit is contained in:
@@ -25,7 +25,7 @@ import { misskeyApi } from '@/utility/misskey-api.js';
|
||||
import { definePage } from '@/page.js';
|
||||
|
||||
const props = defineProps<{
|
||||
messageId?: string;
|
||||
messageId: string;
|
||||
}>();
|
||||
|
||||
const initializing = ref(true);
|
||||
|
||||
@@ -197,7 +197,7 @@ async function initialize() {
|
||||
connection.value.on('deleted', onDeleted);
|
||||
connection.value.on('react', onReact);
|
||||
connection.value.on('unreact', onUnreact);
|
||||
} else {
|
||||
} else if (props.roomId) {
|
||||
const [rResult, mResult] = await Promise.allSettled([
|
||||
misskeyApi('chat/rooms/show', { roomId: props.roomId }),
|
||||
misskeyApi('chat/messages/room-timeline', { roomId: props.roomId, limit: LIMIT }),
|
||||
|
||||
Reference in New Issue
Block a user