From 85588825f010747c1a488e1090dec148f7117e77 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 20 Dec 2016 12:27:58 -0500 Subject: [PATCH] makin things work --- frontend/src/Metamaps/Views/ChatView.js | 4 +++- frontend/src/components/MapChat/Participant.js | 8 +++++--- frontend/src/components/MapChat/index.js | 6 +++++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/frontend/src/Metamaps/Views/ChatView.js b/frontend/src/Metamaps/Views/ChatView.js index 21a083b7..4484a7ea 100644 --- a/frontend/src/Metamaps/Views/ChatView.js +++ b/frontend/src/Metamaps/Views/ChatView.js @@ -59,6 +59,8 @@ const ChatView = { onClose: self.onClose, leaveCall: Realtime.leaveCall, joinCall: Realtime.joinCall, + inviteACall: Realtime.inviteACall, + inviteToJoin: Realtime.inviteToJoin, participants: self.participants.models.map(p => p.attributes), messages: self.messages.models.map(m => m.attributes), videoToggleClick: self.videoToggleClick, @@ -92,7 +94,7 @@ const ChatView = { mapper && mapper.set('isParticipating', true) ChatView.render() }, - mapperLeftCall: () => { + mapperLeftCall: id => { const mapper = ChatView.participants.findWhere({id}) mapper && mapper.set('isParticipating', false) ChatView.render() diff --git a/frontend/src/components/MapChat/Participant.js b/frontend/src/components/MapChat/Participant.js index 7b86a2c4..d8552dfc 100644 --- a/frontend/src/components/MapChat/Participant.js +++ b/frontend/src/components/MapChat/Participant.js @@ -13,11 +13,11 @@ class Participant extends Component { {!self && !conversationLive &&