Skip to content

Commit

Permalink
Fix non-changing green tube button onto red in case user accepts tet-…
Browse files Browse the repository at this point in the history
…a-tet call by clicking on blinking snackbar
  • Loading branch information
nkonev committed Dec 10, 2023
1 parent cdb602c commit c48dd6c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions frontend/src/ChatView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,10 @@ export default {
await this.onProfileSet();
}
this.chatStore.showCallButton = true;
this.chatStore.showHangButton = false;
if (this.$route.name == chat_name) { // not to change in case we enter to call by clicking on blinking snackbar
this.chatStore.showCallButton = true;
this.chatStore.showHangButton = false;
}
bus.on(PROFILE_SET, this.onProfileSet);
bus.on(LOGGED_OUT, this.onLogout);
Expand Down Expand Up @@ -587,8 +589,12 @@ export default {
setTitle(null);
this.chatStore.avatar = null;
this.chatStore.showGoToBlogButton = null;
this.chatStore.showCallButton = false;
this.chatStore.showHangButton = false;
if (this.$route.name == chat_name) { // not to change in case we enter to call by clicking on blinking snackbar
this.chatStore.showCallButton = false;
this.chatStore.showHangButton = false;
}
this.chatStore.isShowSearch = false;
this.chatStore.chatUsersCount = 0;
Expand Down

0 comments on commit c48dd6c

Please sign in to comment.