feat(im):删好友「同时清空聊天记录」弹窗 + 顶部「对方还不是你的朋友」胶囊(点击弹 UserInfoCard)+ fetchFriends 不动 DISABLE 尊重用户选择

im
YunaiV 2026-05-05 00:57:58 +08:00
parent 2a55748296
commit dd75c702db
1 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@
:group-id="conversationStore.activeConversation.targetId"
@locate="handleLocate"
/>
<!-- 私聊对方不再是好友删了 / 被删了胶囊嵌在 header 跟群置顶同级点击弹 UserInfoCard -->
<!-- 私聊对方不再是有效好友我删了对方 / 从未加过单边设计下被对方删除本端 friendStore 不更新故不会触发胶囊嵌在 header 跟群置顶同级点击弹 UserInfoCard -->
<div v-if="showNotFriendBanner" class="message-panel__not-friend-container">
<div class="message-panel__not-friend" @click="handleNotFriendClick">
<span class="message-panel__not-friend-icon">
@ -192,7 +192,7 @@ const isGroup = computed(
() => conversationStore.activeConversation?.type === ImConversationType.GROUP
)
/** 私聊会话且对端不是有效好友(删了 / 被删了),顶部展示「对方还不是你的朋友」黄色横幅 */
/** 私聊会话且对端不是有效好友(本端 friend 记录缺失或 DISABLE单边删除语义下「被对方删除」不触发本端横幅 */
const showNotFriendBanner = computed(() => {
const conversation = conversationStore.activeConversation
if (!conversation || conversation.type !== ImConversationType.PRIVATE) {