1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-27 03:43:16 +01:00

rework peername list storing so no limit is needed

This commit is contained in:
Jfreegman
2013-11-26 20:45:08 -05:00
parent 8de666a349
commit 33ec2f96c2
2 changed files with 46 additions and 24 deletions

View File

@@ -4,18 +4,12 @@
#define SIDEBAR_WIDTH 16
/* If this limit is reached the chat will still work
but the side panel and channel updates will be frozen.
TODO: Make this not necessary */
#define MAX_GROUP_PEERS 1000
typedef struct {
int chatwin;
bool active;
int num_peers;
uint8_t peer_names[MAX_GROUP_PEERS][TOX_MAX_NAME_LENGTH];
uint8_t oldpeer_names[MAX_GROUP_PEERS][TOX_MAX_NAME_LENGTH];
uint8_t *peer_names;
uint8_t *oldpeer_names;
} GroupChat;
int init_groupchat_win(ToxWindow *prompt, Tox *m, int groupnum);