From 6b381b7707de5a6b9017f579753cc1ac1060c658 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 11 Nov 2018 16:30:11 +0100 Subject: [PATCH] Do not set presence type to available --- src/XMPPConnection.m | 1 - src/XMPPPresence.h | 5 ----- src/XMPPPresence.m | 9 --------- 3 files changed, 15 deletions(-) diff --git a/src/XMPPConnection.m b/src/XMPPConnection.m index 7c79a6a..1680bec 100644 --- a/src/XMPPConnection.m +++ b/src/XMPPConnection.m @@ -706,7 +706,6 @@ if (_streamOpen) [_socket writeString: @""]; - [_oldParser release]; _oldParser = nil; [_oldElementBuilder release]; diff --git a/src/XMPPPresence.h b/src/XMPPPresence.h index 20fa9c1..54486f8 100644 --- a/src/XMPPPresence.h +++ b/src/XMPPPresence.h @@ -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. */ diff --git a/src/XMPPPresence.m b/src/XMPPPresence.m index 58f94bc..a29464d 100644 --- a/src/XMPPPresence.m +++ b/src/XMPPPresence.m @@ -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"