1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-04 09:56:46 +02:00

Fix name change notifications

Due to recent core changes we now need to store a peer's
previous name instead of relying on API lookups via the
peer_id in the name change callback in order to display
the correct info
This commit is contained in:
jfreegman
2022-02-04 13:34:57 -05:00
parent 812f2d1ff9
commit 1b9f4f337a
2 changed files with 22 additions and 17 deletions

View File

@ -42,6 +42,7 @@ typedef struct GroupPeer {
bool active;
char name[TOX_MAX_NAME_LENGTH];
size_t name_length;
char prev_name[TOX_MAX_NAME_LENGTH];
uint32_t peer_id;
uint8_t public_key[TOX_GROUP_PEER_PUBLIC_KEY_SIZE];
TOX_USER_STATUS status;