check channel type

This commit is contained in:
MathMan05 committed 2025-11-21 11:53:58 -06:00
1 parent e72ec01314
commit 8ddf219b6a
1 file changed
+1 -1
+1 -1
View File
@@ -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");