generate_unique_id allows prefix

This commit is contained in:
James Booth
2014-01-25 23:18:10 +00:00
parent e1aca3b1f6
commit fbdecdad0c
3 changed files with 9 additions and 5 deletions

View File

@@ -126,7 +126,7 @@ _roster_send_add_to_group(const char * const group, PContact contact)
new_groups = g_slist_append(new_groups, strdup(group));
// add an id handler to handle the response
char *unique_id = get_unique_id();
char *unique_id = generate_unique_id(NULL);
GroupData *data = malloc(sizeof(GroupData));
data->group = strdup(group);
if (p_contact_name(contact) != NULL) {
@@ -175,7 +175,7 @@ _roster_send_remove_from_group(const char * const group, PContact contact)
xmpp_ctx_t * const ctx = connection_get_ctx();
// add an id handler to handle the response
char *unique_id = get_unique_id();
char *unique_id = generate_unique_id(NULL);
GroupData *data = malloc(sizeof(GroupData));
data->group = strdup(group);
if (p_contact_name(contact) != NULL) {