ObjXMPP  Check-in [f2793cf7cb]

Overview
Comment:Do not set presence type to available
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f2793cf7cb124fbf77470e1f0e820e9170f71e63295d5261f08ab3b3767d067f
User & Date: js on 2018-11-11 15:30:11
Other Links: manifest | tags
Context
2018-11-11
19:13
Add MUC namespace check-in: 5a6c7fcfb8 user: js tags: trunk
15:30
Do not set presence type to available check-in: f2793cf7cb user: js tags: trunk
12:17
Add support for anonymous authentication check-in: f09ee1db55 user: js tags: trunk
Changes

Modified src/XMPPConnection.m from [7227381b06] to [0b3550d382].

701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
	_streamOpen = true;
}

- (void)close
{
	if (_streamOpen)
		[_socket writeString: @"</stream:stream>"];


	[_oldParser release];
	_oldParser = nil;
	[_oldElementBuilder release];
	_oldElementBuilder = nil;
	[_authModule release];
	_authModule = nil;







<







701
702
703
704
705
706
707

708
709
710
711
712
713
714
	_streamOpen = true;
}

- (void)close
{
	if (_streamOpen)
		[_socket writeString: @"</stream:stream>"];


	[_oldParser release];
	_oldParser = nil;
	[_oldElementBuilder release];
	_oldElementBuilder = nil;
	[_authModule release];
	_authModule = nil;

Modified src/XMPPPresence.h from [5ef3079598] to [7d91393aee].

30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
 */
@interface XMPPPresence: XMPPStanza <OFComparing>
{
	OFString *_status, *_show;
	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.
 */
@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *status;

/*!
 * The text content of the show element of the presence stanza.







<
<
<
<
<







30
31
32
33
34
35
36





37
38
39
40
41
42
43
 */
@interface XMPPPresence: XMPPStanza <OFComparing>
{
	OFString *_status, *_show;
	OFNumber *_priority;
}






/*!
 * The text content of the status element.
 */
@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *status;

/*!
 * The text content of the show element of the presence stanza.

Modified src/XMPPPresence.m from [50a16e4ae1] to [d9aa17b963].

43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
	if ([show isEqual: @"xa"])
		return 4;

	OF_ENSURE(0);
}

@implementation XMPPPresence
@dynamic type;
@synthesize status = _status, show = _show, priority = _priority;

+ (instancetype)presence
{
	return [[[self alloc] init] autorelease];
}








<







43
44
45
46
47
48
49

50
51
52
53
54
55
56
	if ([show isEqual: @"xa"])
		return 4;

	OF_ENSURE(0);
}

@implementation XMPPPresence

@synthesize status = _status, show = _show, priority = _priority;

+ (instancetype)presence
{
	return [[[self alloc] init] autorelease];
}

131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
	[_status release];
	[_show release];
	[_priority release];

	[super dealloc];
}

- (void)setType: (OFString *)type
{
	if (type == nil)
		type = @"available";

	[super setType: type];
}

- (void)setShow: (OFString *)show
{
	OFXMLElement *oldShow = [self elementForName: @"show"
					   namespace: XMPP_NS_CLIENT];
	OFString *old;

	if (oldShow != nil)







<
<
<
<
<
<
<
<







130
131
132
133
134
135
136








137
138
139
140
141
142
143
	[_status release];
	[_show release];
	[_priority release];

	[super dealloc];
}









- (void)setShow: (OFString *)show
{
	OFXMLElement *oldShow = [self elementForName: @"show"
					   namespace: XMPP_NS_CLIENT];
	OFString *old;

	if (oldShow != nil)