Use a UUID4 as item id for pubsub posts

This commit is contained in:
Philipp Hörist 2019-03-02 10:47:11 +01:00
parent c4b5671b69
commit 56e40954b7
1 changed files with 3 additions and 1 deletions

View File

@ -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()