Skip to content

Commit e3f9e64

Browse files
committed
chatinfo: fix initial group avatars
1 parent 7e82d69 commit e3f9e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/connector/chatinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (wa *WhatsAppClient) makePortalAvatarFetcher(avatarID string, sender types.
335335
return func(ctx context.Context, portal *bridgev2.Portal) bool {
336336
jid, _ := waid.ParsePortalID(portal.ID)
337337
existingID := string(portal.AvatarID)
338-
if avatarID == existingID {
338+
if avatarID != "" && avatarID == existingID {
339339
return false
340340
}
341341
if existingID == "remove" || existingID == "unauthorized" {

0 commit comments

Comments
 (0)