mirror of
https://github.com/jeremysrand/Listener.git
synced 2024-08-31 17:29:00 +00:00
Add some code to clear a "typing" message when there is no more text to send.
This commit is contained in:
parent
2368d6db6c
commit
8be6497191
@ -406,7 +406,7 @@ void handleAwaitingMsgHeaderState(void)
|
|||||||
if (globals->messageHeader.messageArg)
|
if (globals->messageHeader.messageArg)
|
||||||
strcpy(globals->line2, " Listening...");
|
strcpy(globals->line2, " Listening...");
|
||||||
else
|
else
|
||||||
strcpy(globals->line2, "");
|
globals->line2[0] = '\0';
|
||||||
InvalidateWindow();
|
InvalidateWindow();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -442,8 +442,11 @@ void sendKey(void)
|
|||||||
if (textList->header.position < textList->header.size)
|
if (textList->header.position < textList->header.size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (textList == globals->textListTail)
|
if (textList == globals->textListTail) {
|
||||||
globals->textListTail = NULL;
|
globals->textListTail = NULL;
|
||||||
|
globals->line3[0] = '\0';
|
||||||
|
InvalidateWindow();
|
||||||
|
}
|
||||||
|
|
||||||
globals->textListHead = textList->header.next;
|
globals->textListHead = textList->header.next;
|
||||||
free(textList);
|
free(textList);
|
||||||
|
Loading…
Reference in New Issue
Block a user