实现 Windows 与 Web 加密文字群聊预览

This commit is contained in:
xhgit committed 2026-11-14 08:54:55 +08:00
1 parent 709e6aa6a6
commit ea6aec3323
19 files changed
+809 -31

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { useSession } from '../session'
import type { Contact } from '../contacts'
import GroupChat from '../chat/GroupChat.vue'
type Group = { id: string; name: string; state: 'active' | 'invited'; role: 'owner' | 'admin' | 'member'; membershipVersion: string }
type Detail = Group & { members: { id: string; username: string; state: Group['state']; role: Group['role'] }[] }
@@ -121,7 +122,7 @@ onBeforeUnmount(() => clearInterval(timer))
</div>
</template>
<template v-else>
<p class="muted">群消息尚未开放。</p>
<GroupChat v-if="session.identity" :key="detail.id" :group="detail" />
<form v-if="manage" class="contact-preferences" @submit.prevent="change('rename', undefined, nextName)">
<label>修改群名称<input v-model="nextName" required maxlength="64"></label>
<button class="plain" :disabled="busy || !nextName.trim() || nextName.trim() === detail.name">保存群名称</button>