feat(messaging): hide new message bar on esc or sent message

This commit is contained in:
Paul
2021-12-24 17:20:05 +00:00
parent ead6bd83cd
commit 23e239d6ed
3 changed files with 13 additions and 0 deletions

View File

@@ -192,6 +192,7 @@ export default observer(({ channel }: Props) => {
if (uploadState.type === "attached") return sendFile(content);
if (content.length === 0) return;
internalEmit("NewMessages", "hide");
stopTyping();
setMessage();
setReplies([]);