Skip to content

Commit 50ef4b0

Browse files
author
celestix
committed
chore: chore: chore: chore: nil
1 parent 8b2241b commit 50ef4b0

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

api/api.go

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -311,17 +311,17 @@ func (a *Api) GetChatList() ([]ChatElement, error) {
311311
}
312312
}
313313

314-
url, ok := tmpProfileCache.Get(cm.JID.User)
315-
if !ok {
316-
pic, _ := a.waClient.GetProfilePictureInfo(a.ctx, cm.JID, &whatsmeow.GetProfilePictureParams{
317-
Preview: true,
318-
})
319-
if pic != nil {
320-
url = pic.URL
321-
}
322-
tmpProfileCache.Set(cm.JID.User, url)
323-
}
324-
fc.AvatarURL = url
314+
// url, ok := tmpProfileCache.Get(cm.JID.User)
315+
// if !ok {
316+
// pic, _ := a.waClient.GetProfilePictureInfo(a.ctx, cm.JID, &whatsmeow.GetProfilePictureParams{
317+
// Preview: true,
318+
// })
319+
// if pic != nil {
320+
// url = pic.URL
321+
// }
322+
// tmpProfileCache.Set(cm.JID.User, url)
323+
// }
324+
// fc.AvatarURL = url
325325

326326
ce[i] = ChatElement{
327327
LatestMessage: cm.MessageText,

0 commit comments

Comments
 (0)