[tmolitor] use uuid instead of plain counting integers for stanza ids. Fixes #8202

This commit is contained in:
Yann Leboulanger 2015-12-17 20:10:06 +01:00
parent eb30ad07bd
commit 7c9a5aa429
1 changed files with 2 additions and 4 deletions

View File

@ -32,6 +32,7 @@ import os
import logging
import locale
import gi
import uuid
from common import config
import nbxmpp
@ -239,11 +240,8 @@ gajim_optional_features = {}
# Capabilities hash per account
caps_hash = {}
global_id = 0
def get_an_id():
global global_id
global_id += 1
return global_id
return str(uuid.uuid4())
def get_nick_from_jid(jid):
pos = jid.find('@')