Skip to content

Commit

Permalink
chatinfo: fix initial group avatars
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 1, 2024
1 parent 7e82d69 commit e3f9e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/connector/chatinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func (wa *WhatsAppClient) makePortalAvatarFetcher(avatarID string, sender types.
return func(ctx context.Context, portal *bridgev2.Portal) bool {
jid, _ := waid.ParsePortalID(portal.ID)
existingID := string(portal.AvatarID)
if avatarID == existingID {
if avatarID != "" && avatarID == existingID {
return false
}
if existingID == "remove" || existingID == "unauthorized" {
Expand Down

0 comments on commit e3f9e64

Please sign in to comment.