1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-09 09:36:44 +02:00

Merge branch 'read-receipt' of https://github.com/stal888/ProjectTox-Core into pull-requests

Conflicts:
	testing/toxic/chat.c
	testing/toxic/prompt.c
This commit is contained in:
irungentoo
2013-08-07 13:51:58 -04:00
2 changed files with 3 additions and 3 deletions

2
chat.c
View File

@ -121,7 +121,7 @@ static void chat_onKey(ToxWindow *self, int key)
wattroff(ctx->history, COLOR_PAIR(1));
wprintw(ctx->history, "%s\n", ctx->line);
}
if (m_sendmessage(ctx->friendnum, (uint8_t*) ctx->line, strlen(ctx->line)+1) < 0) {
if (m_sendmessage(ctx->friendnum, (uint8_t*) ctx->line, strlen(ctx->line)+1) == 0) {
wattron(ctx->history, COLOR_PAIR(3));
wprintw(ctx->history, " * Failed to send message.\n");
wattroff(ctx->history, COLOR_PAIR(3));