XEP-0461: fix fallback namespace

the XEP should be updated soon, confirmed by author,
other implementations use this namespace
This commit is contained in:
nicoco 2023-02-24 00:10:31 +01:00
parent 1f934d375c
commit 79ffa1668f
3 changed files with 3 additions and 3 deletions

View file

@ -13,7 +13,7 @@ class Reply(ElementBase):
class FeatureFallBack(ElementBase): class FeatureFallBack(ElementBase):
# should also be a multi attrib # should also be a multi attrib
namespace = "urn:xmpp:feature-fallback:0" namespace = "urn:xmpp:fallback:0"
name = "fallback" name = "fallback"
plugin_attrib = "feature_fallback" plugin_attrib = "feature_fallback"
interfaces = {"for"} interfaces = {"for"}

View file

@ -35,7 +35,7 @@ class TestReply(SlixTest):
""" """
<message xmlns="jabber:client"> <message xmlns="jabber:client">
<body>12345\nrealbody</body> <body>12345\nrealbody</body>
<fallback xmlns='urn:xmpp:feature-fallback:0' for='NS'> <fallback xmlns='urn:xmpp:fallback:0' for='NS'>
<body start="0" end="6" /> <body start="0" end="6" />
</fallback> </fallback>
</message> </message>

View file

@ -28,7 +28,7 @@ class TestReply(SlixTest):
<message id="other-id" from="from@from.com/res"> <message id="other-id" from="from@from.com/res">
<reply xmlns="urn:xmpp:reply:0" id="some-id" /> <reply xmlns="urn:xmpp:reply:0" id="some-id" />
<body>&gt; quoted\nsome-body</body> <body>&gt; quoted\nsome-body</body>
<fallback xmlns='urn:xmpp:feature-fallback:0' for='urn:xmpp:reply:0'> <fallback xmlns='urn:xmpp:fallback:0' for='urn:xmpp:reply:0'>
<body start="0" end="8" /> <body start="0" end="8" />
</fallback> </fallback>
</message> </message>