MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / loadCurrentProfile

Function loadCurrentProfile

deployments/desktop/static/desktop.js:5065–5073  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5063 const mentionText = `@[${title}](${nodeId})`;
5064 const start = context?.start ?? input.selectionStart ?? input.value.length;
5065 const end = context?.end ?? input.selectionEnd ?? input.value.length;
5066 input.value = `${input.value.slice(0, start)}${mentionText} ${input.value.slice(end)}`;
5067 const cursor = start + mentionText.length + 1;
5068 input.setSelectionRange(cursor, cursor);
5069 if (!state.chatMentions.some((mention) => mention.node_id === nodeId)) {
5070 state.chatMentions.push({
5071 node_id: nodeId,
5072 title,
5073 node_type: node.node_type || node.type || ""
5074 });
5075 }
5076 renderChatMentionChips();

Callers 2

loadSettingsFunction · 0.85
bindEventsFunction · 0.85

Calls 5

currentUserFunction · 0.85
setProfileSyncStatusFunction · 0.85
uiFunction · 0.85
renderProfileFormFunction · 0.85
apiFunction · 0.70

Tested by

no test coverage detected