Use a UUID4 as item id for pubsub posts

This commit is contained in:
Philipp Hörist 2019-03-01 22:57:44 +01:00
parent 553436332b
commit e023c33268
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@
import types
import weakref
import uuid
import nbxmpp
from gi.repository import GLib
@ -2189,7 +2190,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()