the method: - (XMPPUserCoreDataStorageObject *)myUserForXMPPStream:(XMPPStream *)stream managedObjectContext:(NSMangedObjectContext *)moc is unuseful?
I call this method to get a XMPPUserCoreDataSorageObject, result is nil; I find this method wants to get myuser from rosters through myJID, but the roster doesn't contain myJID, so, is it unuseful?
I can't see a reason for it myself.
You can add yourself to roster, and this method should work. I think better implementation will return XMPPUser instance in both cases, even I have myself in roster or not.
@vitalyster @ObjColumnist How to add myself to roster?In logic, myself should not be in roster, right?
@jackywpy as any other contact - send subscription request to your own JID and then approve it
This appears to be blocked by the XMPPFramework:
https://github.com/robbiehanson/XMPPFramework/blob/f8be98f0b2349873d28cbefb9a6f93d3e75328e2/Extensions/Roster/XMPPRoster.m#L479-L489