mirror of
https://github.com/Tha14/toxic.git
synced 2025-07-04 09:36:45 +02:00
send name instead of full path with file send request
This commit is contained in:
@ -216,11 +216,9 @@ static void groupchat_onGroupNamelistChange(ToxWindow *self, Tox *m, int groupnu
|
||||
/* get old peer name before updating name list */
|
||||
uint8_t oldpeername[TOX_MAX_NAME_LENGTH] = {0};
|
||||
|
||||
if (change != TOX_CHAT_CHANGE_PEER_ADD) {
|
||||
if (change != TOX_CHAT_CHANGE_PEER_ADD)
|
||||
memcpy(oldpeername, &groupchats[groupnum].oldpeer_names[peernum*TOX_MAX_NAME_LENGTH],
|
||||
sizeof(oldpeername));
|
||||
oldpeername[TOXIC_MAX_NAME_LENGTH] = '\0';
|
||||
}
|
||||
|
||||
/* Update name lists */
|
||||
uint8_t tmp_peerlist[num_peers][TOX_MAX_NAME_LENGTH];
|
||||
|
Reference in New Issue
Block a user