fix: Add agent typing notification on all channels (#2855)

Fixes CVE-2021-22881

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
Sivin Varghese
2021-08-23 21:34:23 +05:30
committed by GitHub
parent 7cd3cef0a2
commit 5debe9e8ee
3 changed files with 69 additions and 71 deletions

View File

@@ -390,13 +390,11 @@ export default {
this.isFocused = true;
},
toggleTyping(status) {
if (this.isAWebWidgetInbox && !this.isPrivate) {
const conversationId = this.currentChat.id;
this.$store.dispatch('conversationTypingStatus/toggleTyping', {
status,
conversationId,
});
}
const conversationId = this.currentChat.id;
this.$store.dispatch('conversationTypingStatus/toggleTyping', {
status,
conversationId,
});
},
onFileUpload(file) {
if (!file) {