mpbile .gitigore app chat login register theme
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user