From fef8dff0f2bb429c36dfcb0f66b9b258feb162b2 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sat, 15 Nov 2014 16:29:19 -0500 Subject: [PATCH] Setting groupchat title when the groupchat isn't connected should now return success. --- toxcore/group.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toxcore/group.c b/toxcore/group.c index 8c3c74310..244fbb16d 100644 --- a/toxcore/group.c +++ b/toxcore/group.c @@ -1175,6 +1175,9 @@ int group_title_send(const Group_Chats *g_c, int groupnumber, const uint8_t *tit memcpy(g->title, title, title_len); g->title_len = title_len; + if (g->status != GROUPCHAT_STATUS_CONNECTED) + return 0; + if (send_message_group(g_c, groupnumber, GROUP_MESSAGE_TITLE_ID, title, title_len)) return 0; else