mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Show Tox ID instead of blank names
This commit is contained in:
parent
42d7a7bcef
commit
5662120c51
|
@ -1035,7 +1035,7 @@ void Core::loadFriends()
|
||||||
emit friendAdded(ids[i], CUserId::toString(clientId));
|
emit friendAdded(ids[i], CUserId::toString(clientId));
|
||||||
|
|
||||||
const size_t nameSize = tox_friend_get_name_size(tox, ids[i], nullptr);
|
const size_t nameSize = tox_friend_get_name_size(tox, ids[i], nullptr);
|
||||||
if (nameSize != SIZE_MAX)
|
if (nameSize && nameSize != SIZE_MAX)
|
||||||
{
|
{
|
||||||
uint8_t *name = new uint8_t[nameSize];
|
uint8_t *name = new uint8_t[nameSize];
|
||||||
if (tox_friend_get_name(tox, ids[i], name, nullptr))
|
if (tox_friend_get_name(tox, ids[i], name, nullptr))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user