processone / xmpp-messenger-ios

iOS XMPP Messenger Framework
MIT License
219 stars 93 forks source link

Carbon messages are not storing in XMPPMessageArchivingCoreDataStorage XEP-0280 #80

Open sohanshrooms opened 7 years ago

sohanshrooms commented 7 years ago

I implemented carbon messaging as my project supports multi logins from different devices. I used this code to implement XEP-0280.

xmppMessageCarbons = XMPPMessageCarbons(dispatchQueue: DispatchQueue.main)
xmppMessageCarbons?.activate(xmppStream!)
xmppMessageCarbons?.autoEnableMessageCarbons = true;
xmppMessageCarbons?.addDelegate(self, delegateQueue: DispatchQueue.main)

Now I am getting carbon message in func xmppMessageCarbons(_ xmppMessageCarbons: XMPPMessageCarbons, didReceive message: XMPPMessage, outgoing isOutgoing: Bool) but the issue is I am not able to save that carbon message in XMPPMessageArchivingCoreDataStorage. If anyone knows how to save carbon messages in XMPPMessageArchivingCoreDataStorage please help me.