slidge.core.gateway.delivery_receipt#

XEP-0184 Delivery Receipts

The corresponding slixmpp module is a bit too rigid, this is our implementation to selectively choose when we send delivery receipts

Module Contents#

Classes#

class slidge.core.gateway.delivery_receipt.DeliveryReceipt(xmpp)[source]#
Parameters:

xmpp (slidge.core.gateway.base.BaseGateway) –

ack(msg)[source]#

Send a XEP-0184 (delivery receipt) in response to a message, if appropriate.

Parameters:

msg (slixmpp.Message) –

make_ack(msg_id, mfrom, mto, mtype='chat')[source]#
Parameters:
  • msg_id (str) –

  • mfrom (slixmpp.JID) –

  • mto (slixmpp.JID) –

  • mtype (slixmpp.types.MessageTypes) –

requires_receipt(msg)[source]#

Check if a message is eligible for a delivery receipt.

Parameters:

msg (slixmpp.Message) –

Returns: