File tree Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Expand file tree Collapse file tree 1 file changed +26
-5
lines changed Original file line number Diff line number Diff line change @@ -1540,11 +1540,6 @@ - (void)maybeUpdateStoredLastHandledByClient
1540
1540
}
1541
1541
}
1542
1542
1543
- - (void )xmppStreamDidAuthenticate : (XMPPStream *)sender
1544
- {
1545
-
1546
- }
1547
-
1548
1543
- (void )xmppStream : (XMPPStream *)sender didSendIQ : (XMPPIQ *)iq
1549
1544
{
1550
1545
XMPPLogTrace ();
@@ -1607,6 +1602,32 @@ - (void)xmppStream:(XMPPStream *)sender didReceivePresence:(XMPPPresence *)prese
1607
1602
}
1608
1603
}
1609
1604
1605
+ /* *
1606
+ * This method is called if any of the xmppStream:willReceiveX: methods filter the incoming stanza.
1607
+ *
1608
+ * It may be useful for some extensions to know that something was received,
1609
+ * even if it was filtered for some reason.
1610
+ **/
1611
+ - (void )xmppStreamDidFilterStanza : (XMPPStream *)sender
1612
+ {
1613
+ XMPPLogTrace ();
1614
+
1615
+ if (isStarted)
1616
+ {
1617
+ // The element was filtered/consumed by something in the stack.
1618
+ // So it is implicitly 'handled'.
1619
+
1620
+ XMPPStreamManagementIncomingStanza *stanza =
1621
+ [[XMPPStreamManagementIncomingStanza alloc ] initWithStanzaId: nil isHandled: YES ];
1622
+ [unackedByClient addObject: stanza];
1623
+
1624
+ if (![self maybeSendAck ])
1625
+ {
1626
+ [self maybeUpdateStoredLastHandledByClient ];
1627
+ }
1628
+ }
1629
+ }
1630
+
1610
1631
- (void )xmppStream : (XMPPStream *)sender didSendCustomElement : (NSXMLElement *)element
1611
1632
{
1612
1633
XMPPLogTrace ();
You can’t perform that action at this time.
0 commit comments