mpbile .gitigore app chat login register theme

This commit is contained in:
2026-02-27 20:15:07 +08:00
parent 7976f11cf4
commit 17a4415cd2
5 changed files with 10 additions and 6 deletions

View File

@@ -922,6 +922,12 @@ function markRead(roomId) {
// ========== 创建群聊 ==========
async function showCreateGroup() {
document.getElementById('createGroupModal').classList.remove('hidden');
// 重置弹窗标题和按钮(防止被邀请好友功能覆盖)
document.querySelector('#createGroupModal h3').textContent = '创建群聊';
const createBtn = document.querySelector('#createGroupModal .bg-primary');
createBtn.textContent = '创建';
createBtn.onclick = createGroup;
document.getElementById('groupName').value = '';
const res = await fetch('/api/user/friends');
const data = await res.json();
const list = document.getElementById('friendListForGroup');