Skip to content

Commit

Permalink
fix(call): change caller type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexZakablukov authored and phillsatellite committed Jun 16, 2022
1 parent f1ba46f commit f5ff725
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/ui/BackgroundCall/BackgroundCall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,18 @@ export default Vue.extend({
computed: {
...mapState(['conversation', 'friends']),
...mapState('webrtc', ['elapsedTime', 'activeCall']),
caller(): Friend {
caller(): Friend | undefined {
return this.friends.all.find(
(f: Friend) => f.peerId === this.activeCall?.callId,
)
},
},
methods: {
navigateToActiveConversation() {
if (!this.caller) {
return
}
if (this.$device.isMobile) {
// mobile, show slide 1 which is chat slide, set showSidebar flag false as css related
this.$store.commit('ui/setSwiperSlideIndex', 1)
Expand Down

0 comments on commit f5ff725

Please sign in to comment.