{avatarLetter(peerName)}
{peerName}
{idLine ?
{idLine} : null}
{profileQuery.data?.signature ? (
{profileQuery.data.signature}
) : null}
{(
[
{ type: 'image' as const, label: '图片', icon: 'image' },
{ type: 'video' as const, label: '视频', icon: 'videocam' },
{ type: 'file' as const, label: '文件', icon: 'description' },
{ type: 'link' as const, label: '链接', icon: 'link' },
] satisfies { type: MediaType; label: string; icon: string }[]
).map((item) => (
))}
{remarkEditing ? (
备注
setRemarkDraft(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && remarkMutation.mutate(remarkDraft)}
className="min-w-0 flex-1 rounded-md bg-surface-input px-2 py-1 text-sm outline-none"
/>
) : (
)}
置顶聊天
updateSettings.mutate({ pinned: !settingsQuery.data?.pinned })}
/>
消息免打扰
updateSettings.mutate({ mute_notifications: !settingsQuery.data?.mute_notifications })}
/>
加入黑名单
blockMutation.mutate(!isBlocked)} />