mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-30 22:06:52 +00:00
mattermost: fix DM media upload for unprefixed user IDs (#29925)
Merged via squash.
Prepared head SHA: 5cffcb072c
Co-authored-by: teconomix <6959299+teconomix@users.noreply.github.com>
Co-authored-by: mukhtharcm <56378562+mukhtharcm@users.noreply.github.com>
Reviewed-by: @mukhtharcm
This commit is contained in:
@@ -288,6 +288,18 @@ export type ChannelMessagingAdapter = {
|
||||
targetResolver?: {
|
||||
looksLikeId?: (raw: string, normalized?: string) => boolean;
|
||||
hint?: string;
|
||||
resolveTarget?: (params: {
|
||||
cfg: OpenClawConfig;
|
||||
accountId?: string | null;
|
||||
input: string;
|
||||
normalized: string;
|
||||
preferredKind?: ChannelDirectoryEntryKind | "channel";
|
||||
}) => Promise<{
|
||||
to: string;
|
||||
kind: ChannelDirectoryEntryKind | "channel";
|
||||
display?: string;
|
||||
source?: "normalized" | "directory";
|
||||
} | null>;
|
||||
};
|
||||
formatTargetDisplay?: (params: {
|
||||
target: string;
|
||||
|
||||
Reference in New Issue
Block a user