From 4c903bab64c64f73fd8e02b0f214c18054766b1a Mon Sep 17 00:00:00 2001 From: jfreegman Date: Tue, 24 Nov 2020 20:09:29 -0500 Subject: [PATCH] Port fix for invalid error handling of widechar conversions from master --- src/groupchats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/groupchats.c b/src/groupchats.c index b97a8c1..d4ee383 100644 --- a/src/groupchats.c +++ b/src/groupchats.c @@ -1471,8 +1471,10 @@ static bool groupchat_onKey(ToxWindow *self, Tox *m, wint_t key, bool ltr) } else { execute(ctx->history, self, m, line, GROUPCHAT_COMMAND_MODE); } - } else { + } else if (line[0]) { send_group_message(self, m, self->num, line, TOX_MESSAGE_TYPE_NORMAL); + } else { + line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, RED, " * Failed to parse message."); } wclear(ctx->linewin);