Set @id by default on outgoing messages and presences.
Respects RFC6120 §8.1.3’s RECOMMENDED.
This commit is contained in:
parent
9d378c611c
commit
74ed50e626
2 changed files with 3 additions and 2 deletions
|
@ -104,12 +104,12 @@ class BaseXMPP(XMLStream):
|
||||||
#: :attr:`use_message_ids` to `True` will assign all outgoing
|
#: :attr:`use_message_ids` to `True` will assign all outgoing
|
||||||
#: messages an ID. Some plugin features require enabling
|
#: messages an ID. Some plugin features require enabling
|
||||||
#: this option.
|
#: this option.
|
||||||
self.use_message_ids = False
|
self.use_message_ids = True
|
||||||
|
|
||||||
#: Presence updates may optionally be tagged with ID values.
|
#: Presence updates may optionally be tagged with ID values.
|
||||||
#: Setting :attr:`use_message_ids` to `True` will assign all
|
#: Setting :attr:`use_message_ids` to `True` will assign all
|
||||||
#: outgoing messages an ID.
|
#: outgoing messages an ID.
|
||||||
self.use_presence_ids = False
|
self.use_presence_ids = True
|
||||||
|
|
||||||
#: The API registry is a way to process callbacks based on
|
#: The API registry is a way to process callbacks based on
|
||||||
#: JID+node combinations. Each callback in the registry is
|
#: JID+node combinations. Each callback in the registry is
|
||||||
|
|
|
@ -361,6 +361,7 @@ class SlixTest(unittest.TestCase):
|
||||||
# Some plugins require messages to have ID values. Set
|
# Some plugins require messages to have ID values. Set
|
||||||
# this to True in tests related to those plugins.
|
# this to True in tests related to those plugins.
|
||||||
self.xmpp.use_message_ids = False
|
self.xmpp.use_message_ids = False
|
||||||
|
self.xmpp.use_presence_ids = False
|
||||||
|
|
||||||
def make_header(self, sto='',
|
def make_header(self, sto='',
|
||||||
sfrom='',
|
sfrom='',
|
||||||
|
|
Loading…
Reference in a new issue