feature: Correct response detection
This commit is contained in:
parent
3669dec76f
commit
9de366915b
4 changed files with 38 additions and 12 deletions
|
@ -8,10 +8,6 @@ namespace Messaging.Composer {
|
|||
|
||||
public string Text => fieldText.text;
|
||||
|
||||
public void EmptyText() {
|
||||
fieldText.SetText("");
|
||||
}
|
||||
|
||||
public void WriteEmoji(string emoji) {
|
||||
fieldText.text += emoji;
|
||||
}
|
||||
|
@ -22,5 +18,9 @@ namespace Messaging.Composer {
|
|||
string newText = _removeRegex.Replace(fieldText.text, "");
|
||||
fieldText.SetText(newText);
|
||||
}
|
||||
|
||||
public void ClearText() {
|
||||
fieldText.SetText("");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -15,6 +15,7 @@ namespace Messaging.Composer {
|
|||
public void SendEmojis() {
|
||||
if (CanSendText()) {
|
||||
_messageManager.CreateMessage(inputField.Text, true);
|
||||
inputField.ClearText();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue