fix: allow adding own JID to roster (upstream 4c731f52)

This commit is contained in:
2026-03-31 19:39:28 +03:00
parent 6730719355
commit 1bf7324970
6 changed files with 54 additions and 11 deletions

View File

@@ -99,6 +99,16 @@ resource_destroy(Resource* resource)
}
}
Resource*
resource_copy(Resource* resource)
{
if (resource == NULL) {
return NULL;
}
return resource_new(resource->name, resource->presence, resource->status, resource->priority);
}
gboolean
valid_resource_presence_string(const char* const str)
{