开发者

How can I inform an XMPP sender of other clients sending messages on the sender's behalf?

开发者 https://www.devze.com 2023-04-03 17:23 出处:网络
I\'m building a chat service that supports connectivity over the web as well as XMPP. Assume we have two users, Alice and Bob, chatting with each other over the web interface. Alice is simultaneously

I'm building a chat service that supports connectivity over the web as well as XMPP. Assume we have two users, Alice and Bob, chatting with each other over the web interface. Alice is simultaneously logged via web and XMPP. If Bob sends a message to Alice, she sees the message in both clients, but if she replies via the web, the XMPP client ends up with a one-sided conversation: Alice's messages won't be part of the chat history, but Bob's messages will continue to arrive.

Is there any way in XMPP 开发者_运维问答to inform a sender that a different client sent a message on the sender's behalf, to keep the conversations synchronized?


Get your server vendor to implement XEP-0280: Message Carbons. Then you'll need to turn it on in your client.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号