(user: Api.User)
| 229 | return `目标对话: <b>${htmlEscape(target.titleDisplay)}</b>${ |
| 230 | target.username ? ` <code>${htmlEscape(target.username)}</code>` : "" |
| 231 | }`; |
| 232 | } |
| 233 | |
| 234 | function buildUserDisplay(user: Api.User): string { |
| 235 | const parts: string[] = []; |
| 236 | const userId = getUserIdString(user); |
| 237 | const displayName = getUserDisplayName(user).trim(); |
| 238 | const usernameText = user.username || ""; |
| 239 | |
| 240 | if (displayName && displayName !== userId && displayName !== usernameText) { |
| 241 | parts.push(htmlEscape(displayName)); |
no test coverage detected