Skip to content

Commit

Permalink
fix(chat): focus on chatbar on send message click
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZakablukov authored and stavares843 committed May 17, 2022
1 parent 77688d9 commit 8845ff1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/views/user/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ export default Vue.extend({
this.$store.commit('ui/showSidebar', false)
}
if (this.user.address === this.$store.state.textile.activeConversation) {
this.$store.dispatch('ui/setChatbarFocus')
return
}
this.$router.push(`/chat/direct/${this.user.address}`)
},
async handleShowProfile() {
Expand Down

0 comments on commit 8845ff1

Please sign in to comment.