Skip to content

Commit

Permalink
fix images
Browse files Browse the repository at this point in the history
  • Loading branch information
targoninc-alex committed Jun 1, 2024
1 parent 0b4ba2f commit d10c3ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/components/channel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class ChannelTemplates {
return id === channel.id ? "active" : "_";
});
let lastMemberAvatar = channel.members.at(-1)?.avatar;
if (channel.type === "dm") {
if (channel.type === "dm" && channel.members.length > 1) {
lastMemberAvatar = channel.members.find(member => member.id !== store().get("user").value.id)?.avatar ?? testImage;
}

Expand Down

0 comments on commit d10c3ca

Please sign in to comment.