import { getEventPointerForEvent } from "applesauce-core/helpers";
import { ensureMarkedEventPointerTag } from "../helpers/common-tags.js";
/** Includes the "e" tag referencing the channel creating event */
export function includeChannelPointerTag(channel) {
    return (draft) => {
        let tags = Array.from(draft.tags);
        tags = ensureMarkedEventPointerTag(tags, getEventPointerForEvent(channel), "root");
        return { ...draft, tags };
    };
}
