Fix a few bugs in roster versioning.
This commit is contained in:
parent
cf420076c2
commit
2cae99ef60
3 changed files with 20 additions and 5 deletions
|
@ -39,7 +39,8 @@
|
|||
{
|
||||
Class c = isa;
|
||||
[self release];
|
||||
@throw [OFNotImplementedException exceptionWithClass: c];
|
||||
@throw [OFNotImplementedException exceptionWithClass: c
|
||||
selector: _cmd];
|
||||
}
|
||||
|
||||
- initWithFile: (OFString*)file_
|
||||
|
@ -103,8 +104,11 @@
|
|||
iter = iter2;
|
||||
}
|
||||
|
||||
[iter setObject: object
|
||||
forKey: [pathComponents lastObject]];
|
||||
if (object != nil)
|
||||
[iter setObject: object
|
||||
forKey: [pathComponents lastObject]];
|
||||
else
|
||||
[iter removeObjectForKey: [pathComponents lastObject]];
|
||||
}
|
||||
|
||||
- (id)XMPP_objectForPath: (OFString*)path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue