Use a UUID4 as item id for pubsub posts
This commit is contained in:
parent
c4b5671b69
commit
56e40954b7
|
@ -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:
|
||||||
# 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()
|
||||||
|
|
Loading…
Reference in New Issue