mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-06 17:42:34 +00:00
Setting groupchat title when the groupchat isn't connected should
now return success.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user