Skip to content

Commit

Permalink
channelIdからchannelPathを自動生成するように
Browse files Browse the repository at this point in the history
  • Loading branch information
kamecha committed Jul 29, 2024
1 parent 9917b67 commit bfb5b7c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions denops/traqvim/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ChannelBuffer, Message } from "./type.d.ts";
import {
activity,
channelMessageOptions,
channelPath,
channelTimeline,
createPin,
deleteMessage,
Expand All @@ -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",
Expand Down

0 comments on commit bfb5b7c

Please sign in to comment.