add group context menu

This commit is contained in:
olcxja 2026-08-02 22:21:04 +02:00
commit 891f39e5b1
4 changed files with 236 additions and 2 deletions

View file

@ -250,6 +250,16 @@ var addSpaceMenu = `
${ICONS.createSpace()}
<span class="blah">title.create.space</span>
</button>`
var groupContextMenu = `
<button onclick="gotoGroupSettings(currentContextMenuGroupId)">
${ICONS.settings()}
<span class="blah">title.group.settings</span>
</button>
<button onclick="leaveGroupPrompt(currentContextMenuGroupId)">
${ICONS.delete({ fill: "var(--big-red)" })}
<span class="blah" style="color: var(--big-red)">title.leave.group</span>
</button>
`;
var messageContextMenu = `
<button onclick="replyMessage(currentContextMenuMsgId)">
${ICONS.replyAction()}
@ -270,6 +280,7 @@ var messageContextMenu = `
var backBtnHtml = `<button class="mobile-nav-btn" onclick="mobileNavBack()">${ICONS.arrowBack({ width: "1.5rem", height: "1.5rem" })}</button>`;
var pinBtnHtml = `<button class="topbar-action-btn room-action-pin right" onclick="showPinnedMessages()">${ICONS.pin({ width: "1.5rem", height: "1.5rem" })}</button>`;
var callBtnHtml = `<button class="topbar-action-btn room-action-call right">${ICONS.call({ width: "1.5rem", height: "1.5rem" })}</button>`;
var groupMenuBtnHtml = `<button class="topbar-action-btn right" onclick="handleGroupContextMenu(arguments[0], currentDmId)">${ICONS.menu({ width: "1.5rem", height: "1.5rem" })}</button>`;
var settingsBar = `
<div class="sidebar-section-header">