From c5976e37eaadf663dc3d0c18376ea023355048f3 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Sat, 20 Jan 2018 14:05:38 +0300 Subject: [PATCH] Add correction support for conference Fix #704 --- toxcore/tox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toxcore/tox.c b/toxcore/tox.c index a1f850d1..11967f84 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -1300,8 +1300,10 @@ bool tox_conference_send_message(Tox *tox, uint32_t conference_number, TOX_MESSA if (type == TOX_MESSAGE_TYPE_NORMAL) { ret = group_message_send((Group_Chats *)m->conferences_object, conference_number, message, length); - } else { + } else if (type == TOX_MESSAGE_TYPE_ACTION) { ret = group_action_send((Group_Chats *)m->conferences_object, conference_number, message, length); + } else if (type == TOX_MESSAGE_TYPE_CORRECTION) { + ret = group_correction_send((Group_Chats *)m->conferences_object, conference_number, message, length); } switch (ret) {