Completed cloudinaryv2 fix

This commit is contained in:
Rekai Musuka
2018-09-06 14:07:15 +01:00
parent 1327e86d03
commit 26ecd1182e
4 changed files with 7 additions and 4 deletions

View File

@@ -81,8 +81,10 @@ App.cable.subscriptions.create({
acceptButton.style.display = "block"
triggerCalleeModalEvent()
const photo = document.getElementById('caller-photo');
document.getElementById('caller-name').innerHTML = data["message"]["caller_info"]
document.getElementById('caller-photo').src = data["message"]["caller_photo"]
photo.src = data["message"]["caller_photo"];
photo.style.objectFit = "cover";
chatRoomId = data["message"]["chat_room_id"]
console.log(`user with id: ${userId} needs to subscribe to chatroom ${[chatRoomId]}`)