Skip to content

Commit

Permalink
fix(focus-chat): fixed auto focus when entering chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomBos authored and ThomBos committed Jun 15, 2022
1 parent 5001f34 commit 5db7968
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/views/user/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,13 @@ export default Vue.extend({
// mobile, show slide 1 which is chat slide, set showSidebar flag false as css related
this.$store.commit('ui/setSwiperSlideIndex', 1)
this.$store.commit('ui/showSidebar', false)
this.$store.dispatch('ui/toggleChatbarFocus', false)
}
if (this.user.address === this.$route.params.address) {
this.$store.dispatch('ui/setChatbarFocus')
if (!this.$device.isMobile) {
this.$store.dispatch('ui/setChatbarFocus')
}
return
}
Expand Down

0 comments on commit 5db7968

Please sign in to comment.