diff --git a/webapp/components/Chat/Chat.vue b/webapp/components/Chat/Chat.vue index cca030387..2b9514bf3 100644 --- a/webapp/components/Chat/Chat.vue +++ b/webapp/components/Chat/Chat.vue @@ -3,7 +3,7 @@ import { roomQuery, createRoom } from '~/graphql/Rooms' import { messageQuery, createMessageMutation } from '~/graphql/Messages' +import { mapGetters } from 'vuex' export default { name: 'Chat', @@ -43,7 +44,6 @@ export default { }, data() { return { - currentUserId: this.$store.getters['auth/user'].id, menuActions: [ /* { name: 'inviteUser', @@ -131,6 +131,11 @@ export default { }) } }, + computed: { + ...mapGetters({ + currentUser: 'auth/user', + }), + }, methods: { fetchMessages({ room, options = {} }) { this.messagesLoaded = false