mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-10-23 17:12:25 +00:00
check channel type
This commit is contained in:
1 parent
e72ec01314
commit
8ddf219b6a
1 file changed
+1
-1
@@ -651,7 +651,7 @@ class Group extends Channel {
|
||||
}
|
||||
groupDmDiv = new WeakRef(document.createElement("div"));
|
||||
makeIcon(): HTMLElement {
|
||||
if (this.users.length === 1) {
|
||||
if (this.type === 1) {
|
||||
return this.users[0].buildpfp(undefined);
|
||||
} else {
|
||||
const div = this.groupDmDiv.deref() || document.createElement("div");
|
||||
|
||||
Reference in new issue
Block a user