Do not set presence type to available

This commit is contained in:
Jonathan Schleifer 2018-11-11 16:30:11 +01:00
parent b1c3f82596
commit 6b381b7707
No known key found for this signature in database
GPG key ID: D83A76BFE376345E
3 changed files with 0 additions and 15 deletions

View file

@ -706,7 +706,6 @@
if (_streamOpen)
[_socket writeString: @"</stream:stream>"];
[_oldParser release];
_oldParser = nil;
[_oldElementBuilder release];

View file

@ -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.
*/

View file

@ -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"