Skip to content
Snippets Groups Projects
Commit 56e40954 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Use a UUID4 as item id for pubsub posts

parent c4b5671b
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
'''Window to create new post for discussion groups service.''' '''Window to create new post for discussion groups service.'''
import uuid
from gajim.common import app from gajim.common import app
from nbxmpp import Node from nbxmpp import Node
from gajim import gtkgui_helpers from gajim import gtkgui_helpers
...@@ -65,7 +67,7 @@ class GroupsPostWindow: ...@@ -65,7 +67,7 @@ class GroupsPostWindow:
# publish it to node # publish it to node
con = app.connections[self.account] con = app.connections[self.account]
con.get_module('PubSub').send_pb_publish( con.get_module('PubSub').send_pb_publish(
self.servicejid, self.groupid, item, '0') self.servicejid, self.groupid, item, str(uuid.uuid4()))
# close the window # close the window
self.window.destroy() self.window.destroy()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment