mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-21 20:49:56 +00:00
classic case of no one though to do this
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user