Skip to content
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

presenceDate not set for XMPPResourceCoreDataStorageObject #629

Open
kas-kad opened this issue Nov 12, 2015 · 0 comments
Open

presenceDate not set for XMPPResourceCoreDataStorageObject #629

kas-kad opened this issue Nov 12, 2015 · 0 comments

Comments

@kas-kad
Copy link

kas-kad commented Nov 12, 2015

presenceDate is always nil for any XMPPResourceCoreDataStorageObject, so there is no way to correctly compare two resources.
I've put following code:

    self.presenceDate = [presence delayedDeliveryDate];
    if (self.presenceDate == nil)
    {
        self.presenceDate = [[NSDate alloc] init];
    }

in XMPPResourceCoreDataStorageObject: - (void)updateWithPresence:(XMPPPresence *)presence to solve this problem.

ivankodrnja added a commit to ivankodrnja/XMPPFramework that referenced this issue Jun 6, 2021
Refactored with a tip from robbiehanson#629. Without the the added code, presenceDate is always nil for any XMPPResourceCoreDataStorageObject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant