Do not set presence type to available
This commit is contained in:
parent
b1c3f82596
commit
6b381b7707
3 changed files with 0 additions and 15 deletions
|
@ -706,7 +706,6 @@
|
|||
if (_streamOpen)
|
||||
[_socket writeString: @"</stream:stream>"];
|
||||
|
||||
|
||||
[_oldParser release];
|
||||
_oldParser = nil;
|
||||
[_oldElementBuilder release];
|
||||
|
|
|
@ -34,11 +34,6 @@ OF_ASSUME_NONNULL_BEGIN
|
|||
OFNumber *_priority;
|
||||
}
|
||||
|
||||
/*!
|
||||
* The value of the stanza's type attribute.
|
||||
*/
|
||||
@property OF_NULL_RESETTABLE_PROPERTY (nonatomic, copy) OFString *type;
|
||||
|
||||
/*!
|
||||
* The text content of the status element.
|
||||
*/
|
||||
|
|
|
@ -47,7 +47,6 @@ show_to_int(OFString *show)
|
|||
}
|
||||
|
||||
@implementation XMPPPresence
|
||||
@dynamic type;
|
||||
@synthesize status = _status, show = _show, priority = _priority;
|
||||
|
||||
+ (instancetype)presence
|
||||
|
@ -135,14 +134,6 @@ show_to_int(OFString *show)
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (void)setType: (OFString *)type
|
||||
{
|
||||
if (type == nil)
|
||||
type = @"available";
|
||||
|
||||
[super setType: type];
|
||||
}
|
||||
|
||||
- (void)setShow: (OFString *)show
|
||||
{
|
||||
OFXMLElement *oldShow = [self elementForName: @"show"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue