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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user