summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/Messenger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c
index 2eebd772..aa575382 100644
--- a/toxcore/Messenger.c
+++ b/toxcore/Messenger.c
@@ -861,12 +861,12 @@ int add_groupchat(Messenger *m)
861 if (temp == NULL) 861 if (temp == NULL)
862 return -1; 862 return -1;
863 863
864 m->chats = temp;
864 temp[m->numchats] = new_groupchat(m->net); 865 temp[m->numchats] = new_groupchat(m->net);
865 866
866 if (temp[m->numchats] == NULL) 867 if (temp[m->numchats] == NULL)
867 return -1; 868 return -1;
868 869
869 m->chats = temp;
870 callback_groupmessage(temp[m->numchats], &group_message_function, m); 870 callback_groupmessage(temp[m->numchats], &group_message_function, m);
871 callback_namelistchange(temp[m->numchats], &group_namelistchange_function, m); 871 callback_namelistchange(temp[m->numchats], &group_namelistchange_function, m);
872 /* TODO: remove this (group nicks should not be tied to the global one) */ 872 /* TODO: remove this (group nicks should not be tied to the global one) */