classic case of no one though to do this

This commit is contained in:
Mathium05
2026-07-28 22:21:18 -05:00
parent bbd4a20284
commit 7e2217bc4c
+14
View File
@@ -747,6 +747,20 @@ class Group extends Channel {
const toggle = document.getElementById("maintoggle") as HTMLInputElement;
toggle.checked = true;
};
const isSingle = this.type === 1 && this.users[0];
Group.groupcontextmenu.bindContextmenu(
div,
this,
undefined,
undefined,
undefined,
undefined,
undefined,
!isSingle,
);
if (isSingle) {
User.contextmenu.bindContextmenu(div, this.users[0], undefined);
}
} else if (current) {
current.remove();
} else {