We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 472563d commit 4a3ab96Copy full SHA for 4a3ab96
src/lib/Room/RoomFooter/RoomMessageReply/RoomMessageReply.vue
@@ -104,7 +104,7 @@ export default {
104
return document.getElementById('room-footer').clientHeight
105
},
106
firstFile() {
107
- return this.messageReply.files?.length ? this.messageReply.files[0] : {}
+ return this.messageReply?.files?.length ? this.messageReply.files[0] : {}
108
109
isImage() {
110
return isImageFile(this.firstFile)
@@ -117,7 +117,7 @@ export default {
117
118
isOtherFile() {
119
return (
120
- this.messageReply.files?.length &&
+ this.messageReply?.files?.length &&
121
!this.isAudio &&
122
!this.isVideo &&
123
!this.isImage
0 commit comments