Skip to content

Commit 78af4b3

Browse files
committed
Minor documentation clarification.
1 parent c81cdec commit 78af4b3

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Extensions/XEP-0198/Memory Storage/XMPPStreamManagementMemoryStorage.m

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ - (BOOL)configureWithParent:(XMPPStreamManagement *)parent queue:(dispatch_queue
4949
*
5050
* @param stream
5151
* The associated xmppStream (standard parameter for storage classes)
52+
*
53+
* This method should also nil out the following values (if needed) associated with the account:
54+
* - lastHandledByClient
55+
* - lastHandledByServer
56+
* - pendingOutgoingStanzas
5257
**/
5358
- (void)setResumptionId:(NSString *)inResumptionId
5459
timeout:(uint32_t)inTimeout
@@ -58,6 +63,10 @@ - (void)setResumptionId:(NSString *)inResumptionId
5863
resumptionId = inResumptionId;
5964
timeout = inTimeout;
6065
lastDisconnect = inLastDisconnect;
66+
67+
lastHandledByClient = 0;
68+
lastHandledByServer = 0;
69+
pendingOutgoingStanzas = nil;
6170
}
6271

6372
/**

Extensions/XEP-0198/XMPPStreamManagement.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@
456456
*
457457
* @param stream
458458
* The associated xmppStream (standard parameter for storage classes)
459+
*
460+
* This method should also nil out the following values (if needed) associated with the account:
461+
* - lastHandledByClient
462+
* - lastHandledByServer
463+
* - pendingOutgoingStanzas
459464
**/
460465
- (void)setResumptionId:(NSString *)resumptionId
461466
timeout:(uint32_t)timeout

0 commit comments

Comments
 (0)