diff --git a/denops/traqvim/action.ts b/denops/traqvim/action.ts index 1aee84f..8c6790f 100644 --- a/denops/traqvim/action.ts +++ b/denops/traqvim/action.ts @@ -3,6 +3,7 @@ import { ChannelBuffer, Message } from "./type.d.ts"; import { activity, channelMessageOptions, + channelPath, channelTimeline, createPin, deleteMessage, @@ -19,8 +20,9 @@ export const actionOpenChannel = async ( helper.echo(denops, "actionOpenChannel"); const timeline: Message[] = await channelTimeline(channelMessageOptions); if (channelMessageOptions.channelPath === undefined) { - helper.echoerr(denops, "channelPath is undefined"); - return; + channelMessageOptions.channelPath = await channelPath( + channelMessageOptions.id, + ); } const escapedChannelPath = bufname.format({ scheme: "VtraQ",