From 56e40954b704d186aea9d65a231598d955dec9cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 2 Mar 2019 10:47:11 +0100 Subject: [PATCH] Use a UUID4 as item id for pubsub posts --- gajim/groups.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gajim/groups.py b/gajim/groups.py index ada1a0f6f..c7f9226ea 100644 --- a/gajim/groups.py +++ b/gajim/groups.py @@ -17,6 +17,8 @@ '''Window to create new post for discussion groups service.''' +import uuid + from gajim.common import app from nbxmpp import Node from gajim import gtkgui_helpers @@ -65,7 +67,7 @@ class GroupsPostWindow: # publish it to node con = app.connections[self.account] con.get_module('PubSub').send_pb_publish( - self.servicejid, self.groupid, item, '0') + self.servicejid, self.groupid, item, str(uuid.uuid4())) # close the window self.window.destroy()