fix: Show new message screen instead of input field (#4102)

This commit is contained in:
Pranav Raj S
2022-03-03 12:36:31 +05:30
committed by GitHub
parent 3d7ca61481
commit 28d102f526
5 changed files with 32 additions and 22 deletions

View File

@@ -15,7 +15,6 @@
import configMixin from '../mixins/configMixin';
import TeamAvailability from 'widget/components/TeamAvailability';
import { mapGetters } from 'vuex';
import { BUS_EVENTS } from 'shared/constants/busEvents';
import routerMixin from 'widget/mixins/routerMixin';
export default {
name: 'Home',
@@ -34,10 +33,7 @@ export default {
},
},
data() {
return {
isOnCollapsedView: false,
isOnNewConversation: false,
};
return {};
},
computed: {
...mapGetters({
@@ -46,12 +42,6 @@ export default {
conversationSize: 'conversation/getConversationSize',
}),
},
mounted() {
bus.$on(BUS_EVENTS.START_NEW_CONVERSATION, () => {
this.isOnCollapsedView = true;
this.isOnNewConversation = true;
});
},
methods: {
startConversation() {
if (this.preChatFormEnabled && !this.conversationSize) {