如何通过XMPP获取离线好友头像的哈希值?
当我们登录时,我们需要获取未出现在线状态的好友头像的哈希值,但我没有收到任何包含未在线状态的好友头像哈希值的状态消息。 当然,出于性能原因,我们不能每次都向所有好友询问 vcard-temp。
当用户通过纯XMPP登录时,有什么方法可以获取未在线的好友头像的哈希值?
We need to get the hash of the avatar of a buddy who doesn't appear in online status when we are logged in but I don't get any presence message with the hash of the buddy's avatar who doesn't appear online.
Of course, we can't ask vcard-temp for all the buddies every time by performance reasons.
Is there any ways to get the hash of the avatar for buddies who doesn't appear online when a user logged in via pure XMPP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
缓存您上次在线看到它们时的内容吗?如果不更改所有发送客户端以将头像哈希放入 PEP 中,答案是“否”。
Cache it from the last time you saw them online? Without changing all of the sending clients to put the avatar hash in PEP like it should be, the answer is "no".