Add some code to clear a "typing" message when there is no more text to send.

This commit is contained in:
Jeremy Rand 2021-07-20 00:17:05 -04:00
parent 2368d6db6c
commit 8be6497191
1 changed files with 5 additions and 2 deletions

View File

@ -406,7 +406,7 @@ void handleAwaitingMsgHeaderState(void)
if (globals->messageHeader.messageArg)
strcpy(globals->line2, " Listening...");
else
strcpy(globals->line2, "");
globals->line2[0] = '\0';
InvalidateWindow();
break;
@ -442,8 +442,11 @@ void sendKey(void)
if (textList->header.position < textList->header.size)
return;
if (textList == globals->textListTail)
if (textList == globals->textListTail) {
globals->textListTail = NULL;
globals->line3[0] = '\0';
InvalidateWindow();
}
globals->textListHead = textList->header.next;
free(textList);