Skip to content

Commit 4ce6b4e

Browse files
Debug smacks requests
1 parent 9638674 commit 4ce6b4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Monal/Classes/xmpp.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,10 @@ -(void) sendSMAck:(BOOL) queuedSend
18331833
{
18341834
//don't send anything before a resource is bound and smacks was enabled
18351835
if(self.accountState < kStateInitStarted || !self.connectionProperties.supportsSM3)
1836+
{
1837+
DDLogError(@"DEBUG: self.accountState[%@] < kStateInitStarted[%@] || !self.connectionProperties.supportsSM3[%@]", @(self.accountState), @(kStateInitStarted), bool2str(!self.connectionProperties.supportsSM3));
18361838
return;
1839+
}
18371840

18381841
NSDictionary* dic;
18391842
@synchronized(_stateLockObject) {
@@ -1869,6 +1872,7 @@ -(void) processInput:(MLXMLNode*) parsedStanza withDelayedReplay:(BOOL) delayedR
18691872
{
18701873
if([parsedStanza check:@"/{urn:xmpp:sm:3}r"] && self.connectionProperties.supportsSM3 && self.accountState >= kStateInitStarted)
18711874
{
1875+
DDLogVerbose(@"Got smacks request...");
18721876
[self sendSMAck:YES];
18731877
}
18741878
else if([parsedStanza check:@"/{urn:xmpp:sm:3}a"] && self.connectionProperties.supportsSM3 && self.accountState >= kStateInitStarted)

0 commit comments

Comments
 (0)