From 2370f84817668f0846dc1f2fb806fef0945940a1 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 3 Oct 2024 00:21:39 +0300 Subject: [PATCH] handlewhatsapp: fix handling group avatar changes --- pkg/connector/handlewhatsapp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/connector/handlewhatsapp.go b/pkg/connector/handlewhatsapp.go index 052176b3..b7069777 100644 --- a/pkg/connector/handlewhatsapp.go +++ b/pkg/connector/handlewhatsapp.go @@ -489,7 +489,7 @@ func (wa *WhatsAppClient) handleWAPictureUpdate(evt *events.Picture) { if evt.Remove { changes.Avatar = &bridgev2.Avatar{Remove: true, ID: "remove"} } else { - changes.ExtraUpdates = wa.makePortalAvatarFetcher(evt.PictureID, evt.JID, evt.Timestamp) + changes.ExtraUpdates = wa.makePortalAvatarFetcher(evt.PictureID, evt.Author, evt.Timestamp) } wa.UserLogin.QueueRemoteEvent(&simplevent.ChatInfoChange{ EventMeta: simplevent.EventMeta{