[omemo] Use nbxmpp.namespaces

This commit is contained in:
lovetox
2020-04-19 22:12:13 +02:00
parent 7097f86834
commit fcaa83e3d2
3 changed files with 20 additions and 19 deletions

View File

@@ -15,11 +15,11 @@
# along with OMEMO Gajim Plugin. If not, see <http://www.gnu.org/licenses/>.
import nbxmpp
from nbxmpp.namespaces import Namespace
def prepare_stanza(stanza, plaintext):
delete_nodes(stanza, 'encrypted', nbxmpp.NS_OMEMO_TEMP)
delete_nodes(stanza, 'encrypted', Namespace.OMEMO_TEMP)
delete_nodes(stanza, 'body')
stanza.setBody(plaintext)