mirror of
https://github.com/jeremysrand/Listener.git
synced 2024-11-21 16:31:55 +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)
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user