-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avatars in the html #48
Comments
I also have no idea on where is the avatars of iOS WhatsApp for now. Any comments on this are welcome. |
I looked again on the iOS backup and found where the avatars are stored! I will work towards including the avatars for iOS. |
It's working but with some issues, I found 3 of them. In groups it displays the group avatar instead of the other users' ones. In 1 on 1 chats I noticed that in some cases it is displaying old avatars(cached in some way from whatsapp?) and not the latests. Maybe if the user have more than 1 profile images it use the first and not the latest? Example: In 1 on 1 chat it display the first instead of the latest. Another thing I noticed is that in some chats if I click on the avatar it display another picture (for example from a group where the user belong), .thumb and .jpeg are different. Example:
|
for avatar in avatars:
if avatar.endswith(".thumb") and data[content["ZCONTACTJID"]].their_avatar_thumb is None:
data[content["ZCONTACTJID"]].their_avatar_thumb = avatar
elif avatar.endswith(".jpg") and data[content["ZCONTACTJID"]].their_avatar is None:
data[content["ZCONTACTJID"]].their_avatar = avatar
|
In the next case, for 1 on 1 chats of 393381961111 you can choose from this:
The right one is: The .thumb doesn't exists and wtsexporter wrongly choose to use: 393381960328-1362753161-1362753674.thumb as avatar The next case is similar to the previous one but the .thumb exists:
but wtsexporter choose again a group image: 393469510625-1544247670-1544248176.thumb as avatar A more "complicate" one:
In this case for 1 on 1 chats you have to choose I think that the rule is: Display in 1 on 1 chats the last in alphabetical order .jpg or .thumb avoiding the ones with multiples "ids" (I don't know how to call them) like: phonenumber-ID-ID.jpg|thumb or phonenumber-ID-phonenumber-ID.jpg|thumb If you need a thumb and there's only the jpg, you need to convert it... or use jpeg directly. |
Could the format be like |
There seem to be a bug with avatars in iOS group chat (dev branch & 0.9.5), where all the avatars are the same <div class="w3-col m2 l2">
<a href="AppDomainGroup-group.net.whatsapp.WhatsApp.shared/Media/Profile/aaaa-bbb.jpg">
<img src="AppDomainGroup-group.net.whatsapp.WhatsApp.shared/Media/Profile/aaaa-bbb.jpg" onerror="this.style.display='none'" class="avatar">
</a>
</div> |
Are the avatars the group's avatar? |
Yes they are |
Then it will be considered as a feature request rather than a bug, since it is expected behaviour. |
To ensure individual avatars for each party in a group chat, we must incorporate some identifier (such as a class name or relative path) on a per-message basis. If this isn't feasible, we may consider omitting avatars in the group chat to prevent confusion. PS. I did a quick check, Telegram export does not include avatar. |
Hello I noticed in the html source this:
But in my iOS db export I can't find the Avatars directory.
The text was updated successfully, but these errors were encountered: